|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.morpho.query.CellComparator
This class to compare two vecotors which is two dimentions
Field Summary | |
protected boolean |
ascending
|
protected int |
indexOfRow
|
Constructor Summary | |
CellComparator(int myIndexOfRow,
boolean myAscending)
Constructor of cellComparator |
Method Summary | |
int |
compare(java.lang.Object object1,
java.lang.Object object2)
The method to compare twso vectors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Field Detail |
protected int indexOfRow
protected boolean ascending
Constructor Detail |
public CellComparator(int myIndexOfRow, boolean myAscending)
myIndex
- the row index in vectors need to comparemyAscending
- the order which need to compareMethod Detail |
public int compare(java.lang.Object object1, java.lang.Object object2)
compare
in interface java.util.Comparator
vector1,
- the first vectorvector2,
- the second vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |