Record Class BorderPropertySet.Corners
java.lang.Object
java.lang.Record
org.xhtmlrenderer.css.style.derived.BorderPropertySet.Corners
- Enclosing class:
BorderPropertySet
private static record BorderPropertySet.Corners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomLeft, BorderRadiusCorner bottomRight)
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 bottomLeft, BorderRadiusCorner bottomRight) 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. -
bottomLeft
The field for thebottomLeftrecord component. -
bottomRight
The field for thebottomRightrecord component.
-
-
Constructor Details
-
Corners
private Corners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomLeft, BorderRadiusCorner bottomRight) Creates an instance of aCornersrecord class.- Parameters:
topLeft- the value for thetopLeftrecord componenttopRight- the value for thetopRightrecord componentbottomLeft- the value for thebottomLeftrecord componentbottomRight- the value for thebottomRightrecord component
-
-
Method Details
-
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). -
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
-
bottomLeft
Returns the value of thebottomLeftrecord component.- Returns:
- the value of the
bottomLeftrecord component
-
bottomRight
Returns the value of thebottomRightrecord component.- Returns:
- the value of the
bottomRightrecord component
-