Package org.parttio
Record Class DropShadow
java.lang.Object
java.lang.Record
org.parttio.DropShadow
-
Constructor Summary
ConstructorsConstructorDescriptionDropShadow(String color, Double dx, Double dy, Double blur) Creates an instance of aDropShadowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblur()Returns the value of theblurrecord component.color()Returns the value of thecolorrecord component.dx()Returns the value of thedxrecord component.dy()Returns the value of thedyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DropShadowfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropShadow
Creates an instance of aDropShadowrecord class.- Parameters:
color- the value for thecolorrecord componentdx- the value for thedxrecord componentdy- the value for thedyrecord componentblur- the value for theblurrecord 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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
dx
Returns the value of thedxrecord component.- Returns:
- the value of the
dxrecord component
-
dy
Returns the value of thedyrecord component.- Returns:
- the value of the
dyrecord component
-
blur
Returns the value of theblurrecord component.- Returns:
- the value of the
blurrecord component
-