Record Class ColorRefRefactor.Rewritten

java.lang.Object
java.lang.Record
com.iizix.prop.ColorRefRefactor.Rewritten
Record Components:
holder - The property whose value was rewritten.
oldRef - The reference as it was written.
newRef - The reference as it is now written.
Enclosing class:
ColorRefRefactor

public static record ColorRefRefactor.Rewritten(GProp<?> holder, String oldRef, String newRef) extends Record
One rewritten reference.
Author:
Christopher Mindus
  • Constructor Details

    • Rewritten

      public Rewritten(GProp<?> holder, String oldRef, String newRef)
      Creates an instance of a Rewritten record class.
      Parameters:
      holder - the value for the holder record component
      oldRef - the value for the oldRef record component
      newRef - the value for the newRef record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • holder

      public GProp<?> holder()
      Returns the value of the holder record component.
      Returns:
      the value of the holder record component
    • oldRef

      public String oldRef()
      Returns the value of the oldRef record component.
      Returns:
      the value of the oldRef record component
    • newRef

      public String newRef()
      Returns the value of the newRef record component.
      Returns:
      the value of the newRef record component