public class StringSorter extends Object implements Comparator<Object>
| Constructor and Description |
|---|
StringSorter() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object pO1,
Object pO2) |
static boolean |
find(String[] pArray,
String pName)
Finds pName, in pArray which must be a non case sensitive sorted array of
Strings.
|
static String[] |
sort(String[] pArray)
Sorts non case sensitively the passed String array, the passed array is
not copied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static String[] sort(String[] pArray)
pArray - the array which will be sorted if it's not nullpublic static boolean find(String[] pArray, String pName)
pArray - pName - true if found, otherwise falsepublic int compare(Object pO1, Object pO2)
compare in interface Comparator<Object>Comparator.compare(java.lang.Object, java.lang.Object)Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.