Record Class ColorPaletteAnalyzer.ColorLAB
java.lang.Object
java.lang.Record
org.episteme.social.arts.ColorPaletteAnalyzer.ColorLAB
- All Implemented Interfaces:
Serializable
- Enclosing class:
ColorPaletteAnalyzer
public static record ColorPaletteAnalyzer.ColorLAB(double l, double a, double b)
extends Record
implements Serializable
Represents a color in the CIE 1976 (L*, a*, b*) color space.
L* represents lightness, a* represents green–red, and b* represents blue–yellow.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColorLAB(double l, double a, double b) Creates an instance of aColorLABrecord 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
-
ColorLAB
public ColorLAB(double l, double a, double b) Creates an instance of aColorLABrecord class.- Parameters:
l- the value for thelrecord componenta- the value for thearecord componentb- the value for thebrecord component
-
-
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
public double l()Returns the value of thelrecord component.- Returns:
- the value of the
lrecord component
-
a
public double a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
public double b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-