Package io.github.treesitter.jtreesitter
Record Class Point
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.Point
- Record Components:
row
- The zero-based row of the document.column
- The zero-based column of the document.
- All Implemented Interfaces:
Comparable<Point>
A position in a text document in terms of rows and columns.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
column()
Returns the value of thecolumn
record component.int
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
row()
Returns the value of therow
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
MIN
-
MAX
-
-
Constructor Details
-
Point
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Point>
-
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 '=='. -
row
-
column
-