Record Class GroupColorCache.ColorKey
java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.group.color.GroupColorCache.ColorKey
- Enclosing class:
GroupColorCache
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedColorKey(int groupId, int typeId) Creates an instance of aColorKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttypeId()Returns the value of thetypeIdrecord component.
-
Field Details
-
groupId
private final int groupIdThe field for thegroupIdrecord component. -
typeId
private final int typeIdThe field for thetypeIdrecord component.
-
-
Constructor Details
-
ColorKey
protected ColorKey(int groupId, int typeId) Creates an instance of aColorKeyrecord class.- Parameters:
groupId- the value for thegroupIdrecord componenttypeId- the value for thetypeIdrecord component
-
-
Method Details
-
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. -
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 with '=='. -
groupId
public int groupId()Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
typeId
public int typeId()Returns the value of thetypeIdrecord component.- Returns:
- the value of the
typeIdrecord component
-