Class ModelChange.SetProperty

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

public static final class ModelChange.SetProperty extends Object implements ModelChange
A ModelChange to set a property and value of a model.
  • Constructor Details

    • SetProperty

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

    • property

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

      public String value()
      Retrieves 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.