Class ModelChange.UpdateComment

java.lang.Object
org.apache.gravitino.model.ModelChange.UpdateComment
All Implemented Interfaces:
ModelChange
Enclosing interface:
ModelChange

public static final class ModelChange.UpdateComment extends Object implements ModelChange
A ModelChange to update the comment of a model.
  • Constructor Details

    • UpdateComment

      public UpdateComment(String newComment)
      Constructs a new ModelChange.UpdateComment instance with the specified new comment.
      Parameters:
      newComment - The new comment of the model.
  • Method Details

    • newComment

      public String newComment()
      Retrieves the new comment for the model.
      Returns:
      The new comment of the model.
    • equals

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

      public int hashCode()
      Generates a hash code for this 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 model comment update operation.
    • toString

      public String toString()
      Provides a string representation of the UpdateComment instance. This string format includes the class name followed by the new comment of the model.
      Overrides:
      toString in class Object
      Returns:
      A string summary of the model comment update operation.