Package org.parttio
Record Class Gradient
java.lang.Object
java.lang.Record
org.parttio.Gradient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangle()Returns the value of theanglerecord component.endColor()Returns the value of theendColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GradientReturns the value of thestartColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Gradient
Creates an instance of aGradientrecord class.- Parameters:
startColor- the value for thestartColorrecord componentendColor- the value for theendColorrecord componentangle- the value for theanglerecord component
-
-
Method Details
-
of
-
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 withObjects::equals(Object,Object). -
startColor
Returns the value of thestartColorrecord component.- Returns:
- the value of the
startColorrecord component
-
endColor
Returns the value of theendColorrecord component.- Returns:
- the value of the
endColorrecord component
-
angle
Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord component
-