|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.util.StringComparator
A basic Comparator implementation to compare String instances
either case-sensitively or case-insensitively.
| Method Summary | ||
int |
compare(Object o1,
Object o2)
Compares the two strings lexicographically using the desired case-sensitivity. |
|
static StringComparator |
getInstance(boolean ignoreCase)
Returns an instance of a StringComparator with the desired case sensitivity. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.rim.device.api.util.Comparator |
equals |
| Method Detail |
public int compare(Object o1, Object o2)
o1 - First string to compareo2 - Second string to compareo1 is less than o2, greater than
zero if o1 is greater than o2.NullPointerException - if either o1 or o2 is nullClassCastException - if the run-time type of either o1 or o2 is not Stringpublic static final StringComparator getInstance(boolean ignoreCase)
StringComparator with the desired case sensitivity.ignoreCase - Whether or not the StringComparator should be case-insensitive.StringComparator instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2008 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.