Class LineAndColumn


  • public class LineAndColumn
    extends java.lang.Object
    A simple record with line and column information. The line number is one-based, e.g. the first line in the document has the line number 1. The column number is one based, too, e.g the first column in a line has the index 1. Line breaks are part of the line itself, e.g. the first line break in the document still has line number one.
    Since:
    2.9
    • Method Detail

      • from

        public static LineAndColumn from​(int line,
                                         int column)
      • getLine

        public int getLine()
      • getColumn

        public int getColumn()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object