|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--prog.utils.IgnoreCaseSorter
This Comparator for Strings ignores case. So, instead of the default sorting of Strings that would yield this:
ABC BCD apple babythe Comparator yields this:
ABC apple baby BCD
Constructor Summary | |
IgnoreCaseSorter()
|
Method Summary | |
int |
compare(java.lang.Object ob1,
java.lang.Object ob2)
|
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 IgnoreCaseSorter()
Method Detail |
public int compare(java.lang.Object ob1, java.lang.Object ob2)
compare
in interface java.util.Comparator
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |