public class CIMElementSorter extends Object implements Comparator<Object>
Constructor and Description |
---|
CIMElementSorter() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object pObj0,
Object pObj1) |
static CIMElement |
find(CIMElement[] pArray,
String pName)
Finds CIMElement, named pName, in pArray which must be a sorted array of
CIMElements.
|
static int |
findIdx(CIMElement[] pArray,
String pName)
Finds the index of CIMElement, named pName, in pArray which must be a
sorted array of CIMElements.
|
static CIMElement[] |
sort(CIMElement[] pArray)
Sorts the passed CIMElement array, the passed array is not copied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public static CIMElement[] sort(CIMElement[] pArray)
pArray
- the array which will be sorted if it's not nullpublic static CIMElement find(CIMElement[] pArray, String pName)
pArray
- pName
- public static int findIdx(CIMElement[] pArray, String pName)
pArray
- pName
- Arrays.binarySearch(Object[], Object, Comparator)
public int compare(Object pObj0, Object pObj1)
compare
in interface Comparator<Object>
Comparator.compare(Object, Object)
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.