public class LineColumn extends java.lang.Object implements java.lang.Comparable<LineColumn>
| Modifier and Type | Field and Description |
|---|---|
private int |
column
The zero-based column number.
|
private int |
line
The one-based line number.
|
| Constructor and Description |
|---|
LineColumn(int line,
int column)
Constructs a new pair of line and column numbers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LineColumn lineColumn) |
boolean |
equals(java.lang.Object other) |
int |
getColumn()
Gets the zero-based column number.
|
int |
getLine()
Gets the one-based line number.
|
int |
hashCode() |
private final int line
private final int column
public LineColumn(int line, int column)
line - the one-based line numbercolumn - the zero-based column numberpublic int getLine()
public int getColumn()
public int compareTo(LineColumn lineColumn)
compareTo in interface java.lang.Comparable<LineColumn>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2022. All Rights Reserved.