|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.join.RowRef
public class RowRef
Represents a reference to a table row. This class really just exists to encapsulate the combination of an 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 Summary | |
---|---|
RowRef(int iTable,
long lRow)
Constructs a new RowRef from a table and a row index. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
long |
getRowIndex()
Returns the row index; |
int |
getTableIndex()
Returns the table index. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RowRef(int iTable, long lRow)
iTable
- table indexlRow
- row indexMethod Detail |
---|
public int getTableIndex()
public long getRowIndex()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |