Class ModelChange.RenameModel

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

public static final class ModelChange.RenameModel extends Object implements ModelChange
A ModelChange to rename a model.
  • Constructor Details

    • RenameModel

      public RenameModel(String newName)
      Constructs a new ModelChange.RenameModel instance with the specified new name.
      Parameters:
      newName - The new name of the model.
  • Method Details

    • newName

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

      public boolean equals(Object obj)
      Compares this RenameModel instance with another object for equality. The comparison is based on the new name 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 renaming; false otherwise.
    • hashCode

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

      public String toString()
      Returns a string representation of the RenameModel instance. This string format includes the class name followed by the property name to be renamed.
      Overrides:
      toString in class Object
      Returns:
      A string summary of the property rename instance.