|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.spreadsheet.CellComparator
public class CellComparator
A comparator for Cell
objects (ascending order).
If the Cell
objects contains numbers, compare them as numbers.
If the Cell
objects do not contain numbers, compare them
as strings (empty strings are largest).
Cell
Constructor Summary | |
---|---|
CellComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object Cell1,
java.lang.Object Cell2)
|
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 |
Constructor Detail |
---|
public CellComparator()
Method Detail |
---|
public int compare(java.lang.Object Cell1, java.lang.Object Cell2)
compare
in interface java.util.Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |