Package org.xhtmlrenderer.layout
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 int
The field for theleftFloatDistance
record component.private final int
The field for therightFloatDistance
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
StaticFloatDistances
(int leftFloatDistance, int rightFloatDistance) Creates an instance of aStaticFloatDistances
record class.private
StaticFloatDistances
(LayoutContext c, LineBox current, int maxAvailableWidth) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theleftFloatDistance
record component.int
Returns the value of therightFloatDistance
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
leftFloatDistance
private final int leftFloatDistanceThe field for theleftFloatDistance
record component. -
rightFloatDistance
private final int rightFloatDistanceThe field for therightFloatDistance
record component.
-
-
Constructor Details
-
StaticFloatDistances
-
StaticFloatDistances
private StaticFloatDistances(int leftFloatDistance, int rightFloatDistance) Creates an instance of aStaticFloatDistances
record class.- Parameters:
leftFloatDistance
- the value for theleftFloatDistance
record componentrightFloatDistance
- the value for therightFloatDistance
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 with '=='. -
leftFloatDistance
public int leftFloatDistance()Returns the value of theleftFloatDistance
record component.- Specified by:
leftFloatDistance
in interfaceFloatDistances
- Returns:
- the value of the
leftFloatDistance
record component
-
rightFloatDistance
public int rightFloatDistance()Returns the value of therightFloatDistance
record component.- Specified by:
rightFloatDistance
in interfaceFloatDistances
- Returns:
- the value of the
rightFloatDistance
record component
-