Package org.jpedal.text
Record Class TextLines.Line
java.lang.Object
java.lang.Record
org.jpedal.text.TextLines.Line
- Enclosing class:
TextLines
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]area()Returns the value of thearearecord component.String[]Returns the value of thecharactersrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.int[]segments()Returns the value of thesegmentsrecord component.toString()Returns a string representation of this record class.intReturns the value of thewritingModerecord component.
-
Constructor Details
-
Line
Creates an instance of aLinerecord class.- Parameters:
area- the value for thearearecord componentwritingMode- the value for thewritingModerecord componentsegments- the value for thesegmentsrecord componentcharacters- the value for thecharactersrecord component
-
-
Method Details
-
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 '=='. -
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. -
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. -
area
public int[] area()Returns the value of thearearecord component.- Returns:
- the value of the
arearecord component
-
writingMode
public int writingMode()Returns the value of thewritingModerecord component.- Returns:
- the value of the
writingModerecord component
-
segments
public int[] segments()Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-
characters
Returns the value of thecharactersrecord component.- Returns:
- the value of the
charactersrecord component
-