com.evanmclean.evlib.util
Class CompareCase
java.lang.Object
com.evanmclean.evlib.util.CompareCase
- All Implemented Interfaces:
- Serializable, Comparator<String>
public class CompareCase
- extends Object
- implements Comparator<String>, Serializable
A string comparator that sorts case insensitively first, then by case.
- Author:
- Evan McLean McLean Computer Services (see the
overview for copyright and licensing.)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final CompareCase INSTANCE
- Instance of this comparator.
CompareCase
public CompareCase()
compare
public int compare(String lhs,
String rhs)
- Specified by:
compare
in interface Comparator<String>