public class StringIgnoreCaseKeyComparator extends Object implements KeyComparator<String>
| Modifier and Type | Field and Description |
|---|---|
static StringIgnoreCaseKeyComparator |
SINGLETON |
| Constructor and Description |
|---|
StringIgnoreCaseKeyComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String o1,
String o2) |
boolean |
equals(String x,
String y)
Compare two keys for equality.
|
int |
hash(String k)
Get the hash code of a key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static final StringIgnoreCaseKeyComparator SINGLETON
public int hash(String k)
KeyComparatorhash in interface KeyComparator<String>k - the key.public boolean equals(String x, String y)
KeyComparatorequals in interface KeyComparator<String>x - the first keyy - the second keypublic int compare(String o1, String o2)
compare in interface Comparator<String>Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.