Record Class TextLines.Line

java.lang.Object
java.lang.Record
org.jpedal.text.TextLines.Line
Enclosing class:
TextLines

public static record TextLines.Line(int[] area, int writingMode, int[] segments, String[] characters) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Line(int[] area, int writingMode, int[] segments, String[] characters)
    Creates an instance of a Line record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Returns the value of the area record component.
    Returns the value of the characters record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    int[]
    Returns the value of the segments record component.
    Returns a string representation of this record class.
    int
    Returns the value of the writingMode record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Line

      public Line(int[] area, int writingMode, int[] segments, String[] characters)
      Creates an instance of a Line record class.
      Parameters:
      area - the value for the area record component
      writingMode - the value for the writingMode record component
      segments - the value for the segments record component
      characters - the value for the characters record component
  • Method Details

    • equals

      public 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 '=='.
      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.
    • hashCode

      public 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
    • toString

      public 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
    • area

      public int[] area()
      Returns the value of the area record component.
      Returns:
      the value of the area record component
    • writingMode

      public int writingMode()
      Returns the value of the writingMode record component.
      Returns:
      the value of the writingMode record component
    • segments

      public int[] segments()
      Returns the value of the segments record component.
      Returns:
      the value of the segments record component
    • characters

      public String[] characters()
      Returns the value of the characters record component.
      Returns:
      the value of the characters record component