com.evanmclean.evlib.util
Class CompareCase

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

Field Summary
static CompareCase INSTANCE
          Instance of this comparator.
 
Constructor Summary
CompareCase()
           
 
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 CompareCase INSTANCE
Instance of this comparator.

Constructor Detail

CompareCase

public CompareCase()
Method Detail

compare

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