org.xith3d.utility.comparator
Class IgnoreCaseComparator

java.lang.Object
  extended by org.xith3d.utility.comparator.IgnoreCaseComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.String>

public final class IgnoreCaseComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>

Compares two Strings ignoring case.


Field Summary
static IgnoreCaseComparator INSTANCE
           
 
Method Summary
 int compare(java.lang.String string1, java.lang.String string2)
          Compares two Strings ignoring case.
static int compareIC(java.lang.String string1, java.lang.String string2)
          Compares two Strings ignoring case.
static boolean equalsIC(java.lang.String string1, java.lang.String string2)
           
 
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 IgnoreCaseComparator INSTANCE
Method Detail

equalsIC

public static final boolean equalsIC(java.lang.String string1,
                                     java.lang.String string2)

compareIC

public static final int compareIC(java.lang.String string1,
                                  java.lang.String string2)
Compares two Strings ignoring case.

Parameters:
string1 -
string2 -

compare

public final int compare(java.lang.String string1,
                         java.lang.String string2)
Compares two Strings ignoring case.

Specified by:
compare in interface java.util.Comparator<java.lang.String>
Parameters:
string1 -
string2 -