Class LineColumn
java.lang.Object
com.puppycrawl.tools.checkstyle.api.LineColumn
- All Implemented Interfaces:
Comparable<LineColumn>
Immutable line and column numbers.
-
Constructor Summary
ConstructorsConstructorDescriptionLineColumn
(int line, int column) Constructs a new pair of line and column numbers. -
Method Summary
-
Constructor Details
-
LineColumn
public LineColumn(int line, int column) Constructs a new pair of line and column numbers.- Parameters:
line
- the one-based line numbercolumn
- the zero-based column number
-
-
Method Details
-
getLine
public int getLine()Gets the one-based line number.- Returns:
- the one-based line number
-
getColumn
public int getColumn()Gets the zero-based column number.- Returns:
- the zero-based column number
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LineColumn>
-
equals
-
hashCode
public int hashCode()
-