java.nio.charset
Class Charset.IgnoreCaseComparator
java.lang.Object
java.nio.charset.Charset.IgnoreCaseComparator
- All Implemented Interfaces:
- Comparator<String>
- Enclosing class:
- Charset
static class Charset.IgnoreCaseComparator
- extends Object
- implements Comparator<String>
A comparator that ignores case.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static Comparator<String> getInstance()
compare
public int compare(String s1,
String s2)
- Description copied from interface:
Comparator
- Compare the two objects to determine the relative ordering.
- Specified by:
compare in interface Comparator<String>
- Parameters:
s1 - an Object to compares2 - an Object to compare
- Returns:
- an int < 0 if object1 is less than object2, 0 if they are equal,
and > 0 if object1 is greater
Please submit a feedback, bug or feature