Package org.apache.gravitino.model
Class ModelVersionChange.RemoveProperty
java.lang.Object
org.apache.gravitino.model.ModelVersionChange.RemoveProperty
- All Implemented Interfaces:
ModelVersionChange
- Enclosing interface:
- ModelVersionChange
public static final class ModelVersionChange.RemoveProperty
extends Object
implements ModelVersionChange
A ModelVersionChange to remove a property from a model version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.model.ModelVersionChange
ModelVersionChange.AddUri, ModelVersionChange.RemoveProperty, ModelVersionChange.RemoveUri, ModelVersionChange.SetProperty, ModelVersionChange.UpdateAliases, ModelVersionChange.UpdateComment, ModelVersionChange.UpdateUri -
Field Summary
Fields inherited from interface org.apache.gravitino.model.ModelVersionChange
COMMA_JOINER -
Constructor Summary
ConstructorsConstructorDescriptionRemoveProperty(String property) Creates a newModelVersionChange.RemovePropertyinstance with the specified property name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this RemoveProperty instance with another object for equality.inthashCode()Generates a hash code for this RemoveProperty instance.property()Returns the name of the property to be removed.toString()Provides a string representation of the RemoveProperty instance.
-
Constructor Details
-
RemoveProperty
Creates a newModelVersionChange.RemovePropertyinstance with the specified property name.- Parameters:
property- name of the property to be removed
-
-
Method Details
-
property
Returns the name of the property to be removed.- Returns:
- the name of the property to be removed
-
equals
Compares this RemoveProperty instance with another object for equality. Two instances are considered equal if they target the same property. -
hashCode
public int hashCode()Generates a hash code for this RemoveProperty instance. The hash code is based on the property name to be removed. -
toString
Provides a string representation of the RemoveProperty instance. This string format includes the class name followed by the property name to be removed.
-