Package dev.cerus.maps.api.colormap
Record Class ColorMap.Color
java.lang.Object
java.lang.Record
dev.cerus.maps.api.colormap.ColorMap.Color
- Enclosing class:
- ColorMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Returns the value of thejavaColor
record component.byte
mapColor()
Returns the value of themapColor
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
Color
Creates an instance of aColor
record class.- Parameters:
mapColor
- the value for themapColor
record componentjavaColor
- the value for thejavaColor
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
mapColor
public byte mapColor()Returns the value of themapColor
record component.- Returns:
- the value of the
mapColor
record component
-
javaColor
Returns the value of thejavaColor
record component.- Returns:
- the value of the
javaColor
record component
-