Record Class BorderRadiusCorner.Length
java.lang.Object
java.lang.Record
org.openpdf.css.style.BorderRadiusCorner.Length
- Enclosing class:
BorderRadiusCorner
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLength(float value, boolean percent) Creates an instance of aLengthrecord 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.booleanpercent()Returns the value of thepercentrecord component.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final float valueThe field for thevaluerecord component. -
percent
private final boolean percentThe field for thepercentrecord component.
-
-
Constructor Details
-
Length
private Length(float value, boolean percent) Creates an instance of aLengthrecord class.- Parameters:
value- the value for thevaluerecord componentpercent- the value for thepercentrecord 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. -
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
percent
public boolean percent()Returns the value of thepercentrecord component.- Returns:
- the value of the
percentrecord component
-