public class LineColumn extends Object implements Comparable<LineColumn>
| 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(Object other) |
int |
getColumn()
Gets the zero-based column number.
|
int |
getLine()
Gets the one-based line number.
|
int |
hashCode() |
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 Comparable<LineColumn>Copyright © 2001–2018. All rights reserved.