org.sblim.cimclient.internal.cim
public class CIMElementSorter extends Object implements Comparator
Method Summary | |
---|---|
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.
|
See Also: java.util.Comparator#compare(Object, Object)
Parameters: pArray pName
Returns: the CIMElement if found, otherwise null
Parameters: pArray pName
Returns: the index, just like in case of Arrays.binarySearch()
See Also: java.util.Arrays#binarySearch(Object[], Object, Comparator)
Parameters: pArray the array which will be sorted if it's not null
Returns: pArray