|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.algebra.IndexPair<R,C>
R
- the row index type.C
- the column index type.public final class IndexPair<R,C>
This class is used to represent pairs of matrix indices.
Constructor Summary | |
---|---|
IndexPair(S rowIndex,
T columnIndex)
Constructs a new pair of matrix indices. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates if this index pair is equal to the provided object. |
C |
getColumnIndex()
Returns the column index. |
R |
getRowIndex()
Returns the row index. |
int |
hashCode()
Returns a content-based hash code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexPair(S rowIndex, T columnIndex)
S
- a type extending the primary row type.T
- a type extending the primary column type.rowIndex
- the row index.columnIndex
- the column index.Method Detail |
---|
public R getRowIndex()
public C getColumnIndex()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this index pair equals the provided object;
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |