Record Class CosmeticSelection

java.lang.Object
java.lang.Record
com.stereowalker.unionlib.supporter.CosmeticSelection

public record CosmeticSelection(String cosmeticId, String variant, Map<String,Color> colors) extends Record
  • Constructor Details

    • CosmeticSelection

      public CosmeticSelection(String cosmeticId, String variant, Map<String,Color> colors)
      Creates an instance of a CosmeticSelection record class.
      Parameters:
      cosmeticId - the value for the cosmeticId record component
      variant - the value for the variant record component
      colors - the value for the colors record component
  • Method Details

    • equals

      public final boolean equals(Object arg0)
      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:
      arg0 - the object with which to compare
      Returns:
      true if this object is the same as the arg0 argument; false otherwise.
    • equalsNoColor

      public final boolean equalsNoColor(Object arg0)
    • isCustom

      public boolean isCustom()
    • isDefault

      public boolean isDefault()
    • 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
    • cosmeticId

      public String cosmeticId()
      Returns the value of the cosmeticId record component.
      Returns:
      the value of the cosmeticId record component
    • variant

      public String variant()
      Returns the value of the variant record component.
      Returns:
      the value of the variant record component
    • colors

      public Map<String,Color> colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component