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 |
|---|---|
boolean |
equals(String x,
String y)
Compare two keys for equality.
|
int |
hash(String k)
Get the hash code of a key.
|
public 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 keyCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.