org.xith3d.utility.comparator
Class StartsWithIgnoreCaseComparator
java.lang.Object
org.xith3d.utility.comparator.StartsWithIgnoreCaseComparator
- All Implemented Interfaces:
- java.util.Comparator<java.lang.String>
public final class StartsWithIgnoreCaseComparator
- extends java.lang.Object
- implements java.util.Comparator<java.lang.String>
Compares to Strings by checking, if the first String starts with the second
one ignoring case.
|
Method Summary |
int |
compare(java.lang.String string1,
java.lang.String string2)
Compares to Strings by checking, if the first String starts with the second
one ignoring case. |
static boolean |
startsWithIC(java.lang.String string,
java.lang.String test)
|
| 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 |
INSTANCE
public static final StartsWithIgnoreCaseComparator INSTANCE
startsWithIC
public static final boolean startsWithIC(java.lang.String string,
java.lang.String test)
compare
public final int compare(java.lang.String string1,
java.lang.String string2)
- Compares to Strings by checking, if the first String starts with the second
one ignoring case.
- Specified by:
compare in interface java.util.Comparator<java.lang.String>
- Parameters:
string1 - string2 -