ice.util.alg
Class IgnoreAsciiCaseComparator
java.lang.Object
ice.util.alg.IgnoreAsciiCaseComparator
- All Implemented Interfaces:
- Comparator
- public class IgnoreAsciiCaseComparator
- extends Object
- implements Comparator
Compare/hash string ignoring case of ASCII letters.
Assumes that arguments are strings.
|
Method Summary |
boolean |
equals(Object obj1,
Object obj2)
Compare objects |
int |
hashCode(Object obj)
Return the same value that Java returns for string with
all A-Z repalced by a-z |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final IgnoreAsciiCaseComparator instance
IgnoreAsciiCaseComparator
public IgnoreAsciiCaseComparator()
equals
public boolean equals(Object obj1,
Object obj2)
- Description copied from interface:
Comparator
- Compare objects
- Specified by:
equals in interface Comparator
hashCode
public int hashCode(Object obj)
- Return the same value that Java returns for string with
all A-Z repalced by a-z
- Specified by:
hashCode in interface Comparator