Record Class InlineBoxing.StaticFloatDistances
java.lang.Object
java.lang.Record
org.xhtmlrenderer.layout.InlineBoxing.StaticFloatDistances
- All Implemented Interfaces:
FloatDistances
- Enclosing class:
InlineBoxing
private static record InlineBoxing.StaticFloatDistances(int leftFloatDistance, int rightFloatDistance)
extends Record
implements FloatDistances
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theleftFloatDistancerecord component.private final intThe field for therightFloatDistancerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStaticFloatDistances(int leftFloatDistance, int rightFloatDistance) Creates an instance of aStaticFloatDistancesrecord class.privateStaticFloatDistances(LayoutContext c, LineBox current, int maxAvailableWidth) -
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.intReturns the value of theleftFloatDistancerecord component.intReturns the value of therightFloatDistancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
leftFloatDistance
private final int leftFloatDistanceThe field for theleftFloatDistancerecord component. -
rightFloatDistance
private final int rightFloatDistanceThe field for therightFloatDistancerecord component.
-
-
Constructor Details
-
StaticFloatDistances
-
StaticFloatDistances
private StaticFloatDistances(int leftFloatDistance, int rightFloatDistance) Creates an instance of aStaticFloatDistancesrecord class.- Parameters:
leftFloatDistance- the value for theleftFloatDistancerecord componentrightFloatDistance- the value for therightFloatDistancerecord 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. -
leftFloatDistance
public int leftFloatDistance()Returns the value of theleftFloatDistancerecord component.- Specified by:
leftFloatDistancein interfaceFloatDistances- Returns:
- the value of the
leftFloatDistancerecord component
-
rightFloatDistance
public int rightFloatDistance()Returns the value of therightFloatDistancerecord component.- Specified by:
rightFloatDistancein interfaceFloatDistances- Returns:
- the value of the
rightFloatDistancerecord component
-