Class ModelVersionChange.SetProperty

java.lang.Object
org.apache.gravitino.model.ModelVersionChange.SetProperty
All Implemented Interfaces:
ModelVersionChange
Enclosing interface:
ModelVersionChange

public static final class ModelVersionChange.SetProperty extends Object implements ModelVersionChange
A ModelVersionChange to set a property of a model version.
  • Constructor Details

    • SetProperty

      public SetProperty(String property, String value)
      Creates a new ModelVersionChange.SetProperty instance with the specified property name and value.
      Parameters:
      property - name of the property to be set
      value - value to be set for the property
  • Method Details

    • property

      public String property()
      Returns the name of the property to be set.
      Returns:
      the name of the property to be set
    • value

      public String value()
      Returns the value to be set for the property.
      Returns:
      the value to be set for the property
    • equals

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

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

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