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.
  • Constructor Details

    • RemoveProperty

      public RemoveProperty(String property)
      Creates a new ModelVersionChange.RemoveProperty instance with the specified property name.
      Parameters:
      property - name of the property to be removed
  • Method Details

    • property

      public String property()
      Returns the name of the property to be removed.
      Returns:
      the name of the property to be removed
    • equals

      public boolean equals(Object obj)
      Compares this RemoveProperty instance with another object for equality. Two instances are considered equal if they target the same property.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with this instance.
      Returns:
      true if the given object represents the same property removal; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this RemoveProperty instance. The hash code is based on the property name to be removed.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this property removal operation.
    • toString

      public String toString()
      Provides a string representation of the RemoveProperty instance. This string format includes the class name followed by the property name to be removed.
      Overrides:
      toString in class Object
      Returns:
      A string summary of the property removal operation.