Package org.apache.gravitino.model
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.
-
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
ConstructorsConstructorDescriptionSetProperty
(String property, String value) Creates a newModelVersionChange.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()
Returns the name of the property to be set.toString()
Provides a string representation of the SetProperty instance.value()
Returns the value to be set for the property.
-
Constructor Details
-
SetProperty
Creates a newModelVersionChange.SetProperty
instance with the specified property name and value.- Parameters:
property
- name of the property to be setvalue
- value to be set for the property
-
-
Method Details
-
property
Returns the name of the property to be set.- Returns:
- the name of the property to be set
-
value
Returns 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.
-