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)
KeyComparator
hash
in interface KeyComparator<String>
k
- the key.public boolean equals(String x, String y)
KeyComparator
equals
in interface KeyComparator<String>
x
- the first keyy
- the second keyCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.