com.evanmclean.evlib.util
Class CompareIgnoreCase

java.lang.Object
  extended by 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

Field Summary
static CompareIgnoreCase INSTANCE
          Instance of this comparator.
 
Constructor Summary
CompareIgnoreCase()
           
 
Method Summary
 int compare(String lhs, String rhs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

INSTANCE

public static final CompareIgnoreCase INSTANCE
Instance of this comparator.

Constructor Detail

CompareIgnoreCase

public CompareIgnoreCase()
Method Detail

compare

public int compare(String lhs,
                   String rhs)
Specified by:
compare in interface Comparator<String>