Record Class JustificationInfo
java.lang.Object
java.lang.Record
org.openpdf.render.JustificationInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thenonSpaceAdjustrecord component.private final floatThe field for thespaceAdjustrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJustificationInfo(float nonSpaceAdjust, float spaceAdjust) Creates an instance of aJustificationInforecord class. -
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.floatReturns the value of thenonSpaceAdjustrecord component.floatReturns the value of thespaceAdjustrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
nonSpaceAdjust
private final float nonSpaceAdjustThe field for thenonSpaceAdjustrecord component. -
spaceAdjust
private final float spaceAdjustThe field for thespaceAdjustrecord component.
-
-
Constructor Details
-
JustificationInfo
public JustificationInfo(float nonSpaceAdjust, float spaceAdjust) Creates an instance of aJustificationInforecord class.- Parameters:
nonSpaceAdjust- the value for thenonSpaceAdjustrecord componentspaceAdjust- the value for thespaceAdjustrecord 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. -
nonSpaceAdjust
public float nonSpaceAdjust()Returns the value of thenonSpaceAdjustrecord component.- Returns:
- the value of the
nonSpaceAdjustrecord component
-
spaceAdjust
public float spaceAdjust()Returns the value of thespaceAdjustrecord component.- Returns:
- the value of the
spaceAdjustrecord component
-