Package org.apache.gravitino.model
Class ModelChange.UpdateComment
java.lang.Object
org.apache.gravitino.model.ModelChange.UpdateComment
- All Implemented Interfaces:
ModelChange
- Enclosing interface:
- ModelChange
A ModelChange to update the comment 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
ConstructorsConstructorDescriptionUpdateComment
(String newComment) Constructs a newModelChange.UpdateComment
instance with the specified new comment. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this UpdateComment instance with another object for equality.int
hashCode()
Generates a hash code for this UpdateComment instance.Retrieves the new comment for the model.toString()
Provides a string representation of the UpdateComment instance.
-
Constructor Details
-
UpdateComment
Constructs a newModelChange.UpdateComment
instance with the specified new comment.- Parameters:
newComment
- The new comment of the model.
-
-
Method Details
-
newComment
Retrieves the new comment for the model.- Returns:
- The new comment of the model.
-
equals
Compares this UpdateComment instance with another object for equality. The comparison is based on the new comment of the model. -
hashCode
public int hashCode()Generates a hash code for this UpdateComment instance. The hash code is based on the new comment of the model. -
toString
Provides a string representation of the UpdateComment instance. This string format includes the class name followed by the new comment of the model.
-