Package org.apache.gravitino.model
Class ModelChange.SetProperty
java.lang.Object
org.apache.gravitino.model.ModelChange.SetProperty
- All Implemented Interfaces:
ModelChange
- Enclosing interface:
- ModelChange
A ModelChange to set a property and value of a model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.model.ModelChange
ModelChange.RemoveProperty, ModelChange.RenameModel, ModelChange.SetProperty, ModelChange.UpdateComment
-
Constructor Summary
ConstructorsConstructorDescriptionSetProperty
(String property, String value) Constructs a newModelChange.SetProperty
instance with the specified property name and value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this SetProperty instance with another object for equality.int
hashCode()
Generates a hash code for this SetProperty instance.property()
Retrieves the name of the property to be set.toString()
Provides a string representation of the SetProperty instance.value()
Retrieves the value to be set for the property.
-
Constructor Details
-
SetProperty
Constructs a newModelChange.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
Retrieves the name of the property to be set.- Returns:
- The name of the property to be set.
-
value
Retrieves the value to be set for the property.- Returns:
- The value to be set for the property.
-
equals
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. -
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. -
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.
-