public class RowRef extends Object implements Comparable<RowRef>
int index referencing a table
and a long referencing a row of that table.
Importantly though, it implements equals, hashCode
and the Comparable interface in such a way as to make it
suitable for use as keys in a SortedSet.
The sort order defined sorts lowest table index first, then lowest
row index.| Constructor and Description |
|---|
RowRef(int iTable,
long lRow)
Constructs a new RowRef from a table and a row index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RowRef other) |
boolean |
equals(Object o) |
long |
getRowIndex()
Returns the row index;
|
int |
getTableIndex()
Returns the table index.
|
int |
hashCode() |
String |
toString() |
public RowRef(int iTable,
long lRow)
iTable - table indexlRow - row indexpublic int getTableIndex()
public long getRowIndex()
public int compareTo(RowRef other)
compareTo in interface Comparable<RowRef>Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.