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.
  • Constructor Details

    • UpdateComment

      public UpdateComment(String newComment)
      Creates a new ModelVersionChange.UpdateComment instance with the specified new comment.
      Parameters:
      newComment - new comment to be set for the model version
  • Method Details

    • newComment

      public String newComment()
      Returns the new comment to be set for the model version.
      Returns:
      the new comment to be set for the model version
    • equals

      public boolean equals(Object obj)
      Compares this ModelVersionChange.UpdateComment instance with another object for equality. The comparison is based on the new comment of the model version.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with this instance.
      Returns:
      true if the given object represents the same model update operation; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this ModelVersionChange.UpdateComment instance. The hash code is based on the new comment of the model.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this comment update operation.
    • toString

      public String toString()
      Returns a string representation of the ModelVersionChange.UpdateComment instance. This string format includes the class name followed by the comment to be updated.
      Overrides:
      toString in class Object
      Returns:
      A string summary of the ModelVersionChange.UpdateComment instance.