Record Class BorderPropertySet.Corners
java.lang.Object
java.lang.Record
org.openpdf.css.style.derived.BorderPropertySet.Corners
- Enclosing class:
BorderPropertySet
private static record BorderPropertySet.Corners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomRight, BorderRadiusCorner bottomLeft)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BorderRadiusCornerThe field for thebottomLeftrecord component.private final BorderRadiusCornerThe field for thebottomRightrecord component.private final BorderRadiusCornerThe field for thetopLeftrecord component.private final BorderRadiusCornerThe field for thetopRightrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCorners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomRight, BorderRadiusCorner bottomLeft) Creates an instance of aCornersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomLeftrecord component.Returns the value of thebottomRightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.topLeft()Returns the value of thetopLeftrecord component.topRight()Returns the value of thetopRightrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
topLeft
The field for thetopLeftrecord component. -
topRight
The field for thetopRightrecord component. -
bottomRight
The field for thebottomRightrecord component. -
bottomLeft
The field for thebottomLeftrecord component.
-
-
Constructor Details
-
Corners
private Corners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomRight, BorderRadiusCorner bottomLeft) Creates an instance of aCornersrecord class.- Parameters:
topLeft- the value for thetopLeftrecord componenttopRight- the value for thetopRightrecord componentbottomRight- the value for thebottomRightrecord componentbottomLeft- the value for thebottomLeftrecord 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 withObjects::equals(Object,Object). -
topLeft
Returns the value of thetopLeftrecord component.- Returns:
- the value of the
topLeftrecord component
-
topRight
Returns the value of thetopRightrecord component.- Returns:
- the value of the
topRightrecord component
-
bottomRight
Returns the value of thebottomRightrecord component.- Returns:
- the value of the
bottomRightrecord component
-
bottomLeft
Returns the value of thebottomLeftrecord component.- Returns:
- the value of the
bottomLeftrecord component
-