Record Class GradientStop
java.lang.Object
java.lang.Record
dev.boze.api.gui.editor.GradientStop
- Record Components:
key- Identity of the stop, the same while it moves, changes place with others or changes color, for animating itposition- Where it sits along the bar, 0 to 1rgb- Its color, without alpha
-
Constructor Summary
ConstructorsConstructorDescriptionGradientStop(Object key, double position, int rgb) Creates an instance of aGradientStoprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.doubleposition()Returns the value of thepositionrecord component.intrgb()Returns the value of thergbrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GradientStop
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
key
-
position
-
rgb
-