Record Class InlineBoxing.DynamicFloatDistances
java.lang.Object
java.lang.Record
org.openpdf.layout.InlineBoxing.DynamicFloatDistances
- All Implemented Interfaces:
FloatDistances
- Enclosing class:
InlineBoxing
private static record InlineBoxing.DynamicFloatDistances(LayoutContext c, LineBox current, int maxAvailableWidth)
extends Record
implements FloatDistances
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LayoutContextThe field for thecrecord component.private final LineBoxThe field for thecurrentrecord component.private final intThe field for themaxAvailableWidthrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDynamicFloatDistances(LayoutContext c, LineBox current, int maxAvailableWidth) Creates an instance of aDynamicFloatDistancesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionc()Returns the value of thecrecord component.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intintReturns the value of themaxAvailableWidthrecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
c
The field for thecrecord component. -
current
The field for thecurrentrecord component. -
maxAvailableWidth
private final int maxAvailableWidthThe field for themaxAvailableWidthrecord component.
-
-
Constructor Details
-
DynamicFloatDistances
Creates an instance of aDynamicFloatDistancesrecord class.- Parameters:
c- the value for thecrecord componentcurrent- the value for thecurrentrecord componentmaxAvailableWidth- the value for themaxAvailableWidthrecord component
-
-
Method Details
-
leftFloatDistance
public int leftFloatDistance()- Specified by:
leftFloatDistancein interfaceFloatDistances
-
rightFloatDistance
public int rightFloatDistance()- Specified by:
rightFloatDistancein interfaceFloatDistances
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
maxAvailableWidth
public int maxAvailableWidth()Returns the value of themaxAvailableWidthrecord component.- Returns:
- the value of the
maxAvailableWidthrecord component
-