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.UpdateComment
instance with the specified new comment. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares thisModelVersionChange.UpdateComment
instance with another object for equality.int
hashCode()
Generates a hash code for thisModelVersionChange.UpdateComment
instance.Returns the new comment to be set for the model version.toString()
Returns a string representation of theModelVersionChange.UpdateComment
instance.
-
Constructor Details
-
UpdateComment
Creates a newModelVersionChange.UpdateComment
instance 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.UpdateComment
instance 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.UpdateComment
instance. The hash code is based on the new comment of the model. -
toString
Returns a string representation of theModelVersionChange.UpdateComment
instance. This string format includes the class name followed by the comment to be updated.- Overrides:
toString
in classObject
- Returns:
- A string summary of the
ModelVersionChange.UpdateComment
instance.
-