Package org.apache.gravitino.model
Class ModelVersionChange.UpdateComment
java.lang.Object
org.apache.gravitino.model.ModelVersionChange.UpdateComment
- All Implemented Interfaces:
ModelVersionChange
- Enclosing interface:
- ModelVersionChange
public static final class ModelVersionChange.UpdateComment
extends Object
implements ModelVersionChange
A ModelVersionChange to update the model version comment.
-
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
ConstructorsConstructorDescriptionUpdateComment(String newComment) Creates a newModelVersionChange.UpdateCommentinstance with the specified new comment. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares thisModelVersionChange.UpdateCommentinstance with another object for equality.inthashCode()Generates a hash code for thisModelVersionChange.UpdateCommentinstance.Returns the new comment to be set for the model version.toString()Returns a string representation of theModelVersionChange.UpdateCommentinstance.
-
Constructor Details
-
UpdateComment
Creates a newModelVersionChange.UpdateCommentinstance with the specified new comment.- Parameters:
newComment- new comment to be set for the model version
-
-
Method Details
-
newComment
Returns the new comment to be set for the model version.- Returns:
- the new comment to be set for the model version
-
equals
Compares thisModelVersionChange.UpdateCommentinstance with another object for equality. The comparison is based on the new comment of the model version. -
hashCode
public int hashCode()Generates a hash code for thisModelVersionChange.UpdateCommentinstance. The hash code is based on the new comment of the model. -
toString
Returns a string representation of theModelVersionChange.UpdateCommentinstance. This string format includes the class name followed by the comment to be updated.- Overrides:
toStringin classObject- Returns:
- A string summary of the
ModelVersionChange.UpdateCommentinstance.
-