Record Class ColorMetrology.LabColor
java.lang.Object
java.lang.Record
org.episteme.social.arts.ColorMetrology.LabColor
- Record Components:
l- lightness (0 to 100)a- green–red color componentb- blue–yellow color component
- All Implemented Interfaces:
Serializable
- Enclosing class:
ColorMetrology
public static record ColorMetrology.LabColor(double l, double a, double b)
extends Record
implements Serializable
Represents a color in the CIELAB (CIE 1976 L*a*b*) color space.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLabColor(double l, double a, double b) Creates an instance of aLabColorrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublea()Returns the value of thearecord component.doubleb()Returns the value of thebrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublel()Returns the value of thelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LabColor
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
l
-
a
-
b
-