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 BorderRadiusCorner
The field for thebottomLeft
record component.private final BorderRadiusCorner
The field for thebottomRight
record component.private final BorderRadiusCorner
The field for thetopLeft
record component.private final BorderRadiusCorner
The field for thetopRight
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Corners
(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomLeft, BorderRadiusCorner bottomRight) Creates an instance of aCorners
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomLeft
record component.Returns the value of thebottomRight
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.topLeft()
Returns the value of thetopLeft
record component.topRight()
Returns the value of thetopRight
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
topLeft
The field for thetopLeft
record component. -
topRight
The field for thetopRight
record component. -
bottomLeft
The field for thebottomLeft
record component. -
bottomRight
The field for thebottomRight
record component.
-
-
Constructor Details
-
Corners
private Corners(BorderRadiusCorner topLeft, BorderRadiusCorner topRight, BorderRadiusCorner bottomLeft, BorderRadiusCorner bottomRight) Creates an instance of aCorners
record class.- Parameters:
topLeft
- the value for thetopLeft
record componenttopRight
- the value for thetopRight
record componentbottomLeft
- the value for thebottomLeft
record componentbottomRight
- the value for thebottomRight
record 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 thetopLeft
record component.- Returns:
- the value of the
topLeft
record component
-
topRight
Returns the value of thetopRight
record component.- Returns:
- the value of the
topRight
record component
-
bottomLeft
Returns the value of thebottomLeft
record component.- Returns:
- the value of the
bottomLeft
record component
-
bottomRight
Returns the value of thebottomRight
record component.- Returns:
- the value of the
bottomRight
record component
-