|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.gui.comparators.IgnoreCaseComparator
Basic comparator that can be set to be character case sensitive or not.
Copyright: Copyright (c) 2003
Company: dmonix.org
| Constructor Summary | |
IgnoreCaseComparator()
Creates a case insensitive comparator. |
|
IgnoreCaseComparator(boolean ignoreCase)
Creates a case (in)sensitive comparator. |
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares the toString representation of two objects.
|
boolean |
isCaseSensitive()
Returns if the comparator is case sensitive or not. |
void |
setCaseSensitive(boolean b)
Sets if this comparator is to be case sensitive or not. |
| 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 IgnoreCaseComparator()
public IgnoreCaseComparator(boolean ignoreCase)
ignoreCase - true - case insensitive, false case sensitive| Method Detail |
public void setCaseSensitive(boolean b)
b - true - case sensitive, false - case insensitivepublic boolean isCaseSensitive()
public int compare(java.lang.Object o1,
java.lang.Object o2)
toString representation of two objects.
compareToIgnoreCase or
compareTo depending of if this comparator is case sensitive or not.
compare in interface java.util.Comparatoro1 - Object oneo2 - Object two
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||