Class StringIgnoreCaseKeyComparator
java.lang.Object
org.glassfish.jersey.internal.util.collection.StringIgnoreCaseKeyComparator
- All Implemented Interfaces:
Serializable,KeyComparator<String>
Case insensitive String key comparator.
- Author:
- Paul Sandoz, Michal Gajdos
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SINGLETON
-
-
Constructor Details
-
StringIgnoreCaseKeyComparator
public StringIgnoreCaseKeyComparator()
-
-
Method Details
-
hash
Description copied from interface:KeyComparatorGet the hash code of a key.- Specified by:
hashin interfaceKeyComparator<String>- Parameters:
k- the key.- Returns:
- the hash code of the key.
-
equals
Description copied from interface:KeyComparatorCompare two keys for equality.- Specified by:
equalsin interfaceKeyComparator<String>- Parameters:
x- the first keyy- the second key- Returns:
- true if the keys are equal.
-