com.evanmclean.evlib.util
Class CompareIgnoreCase
java.lang.Object
com.evanmclean.evlib.util.CompareIgnoreCase
- All Implemented Interfaces:
- Serializable, Comparator<String>
public class CompareIgnoreCase
- extends Object
- implements Comparator<String>, Serializable
A string comparator that does case-insensitive comparisons.
- 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 CompareIgnoreCase INSTANCE
- Instance of this comparator.
CompareIgnoreCase
public CompareIgnoreCase()
compare
public int compare(String lhs,
String rhs)
- Specified by:
compare
in interface Comparator<String>