Record Class CosmeticSelection
java.lang.Object
java.lang.Record
com.stereowalker.unionlib.supporter.CosmeticSelection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolors()Returns the value of thecolorsrecord component.Returns the value of thecosmeticIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final booleanequalsNoColor(Object arg0) final inthashCode()Returns a hash code value for this object.booleanisCustom()booleanfinal StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
CosmeticSelection
Creates an instance of aCosmeticSelectionrecord class.- Parameters:
cosmeticId- the value for thecosmeticIdrecord componentvariant- the value for thevariantrecord componentcolors- the value for thecolorsrecord component
-
-
Method Details
-
equals
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 withObjects::equals(Object,Object). -
equalsNoColor
-
isCustom
public boolean isCustom() -
isDefault
public boolean isDefault() -
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. -
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. -
cosmeticId
Returns the value of thecosmeticIdrecord component.- Returns:
- the value of the
cosmeticIdrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
colors
Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-