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 Details

    • c

      private final LayoutContext c
      The field for the c record component.
    • current

      private final LineBox current
      The field for the current record component.
    • maxAvailableWidth

      private final int maxAvailableWidth
      The field for the maxAvailableWidth record component.
  • Constructor Details

    • DynamicFloatDistances

      private DynamicFloatDistances(LayoutContext c, LineBox current, int maxAvailableWidth)
      Creates an instance of a DynamicFloatDistances record class.
      Parameters:
      c - the value for the c record component
      current - the value for the current record component
      maxAvailableWidth - the value for the maxAvailableWidth record component
  • Method Details

    • leftFloatDistance

      public int leftFloatDistance()
      Specified by:
      leftFloatDistance in interface FloatDistances
    • rightFloatDistance

      public int rightFloatDistance()
      Specified by:
      rightFloatDistance in interface FloatDistances
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • c

      public LayoutContext c()
      Returns the value of the c record component.
      Returns:
      the value of the c record component
    • current

      public LineBox current()
      Returns the value of the current record component.
      Returns:
      the value of the current record component
    • maxAvailableWidth

      public int maxAvailableWidth()
      Returns the value of the maxAvailableWidth record component.
      Returns:
      the value of the maxAvailableWidth record component