|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.util.IlrCollections
public final class IlrCollections
This is a utility class which has miscellaneous static methods that operate on lists and on iterators.
Method Summary | |
---|---|
static int |
getSize(List list)
Returns the size of the list, that is, 0 if list is null,
or its size otherwise. |
static int |
getSize(Object[] array)
Returns the size of the array, that is, 0 if array is null,
or its length otherwise. |
static List |
Sort(Iterator iter,
Comparator c)
Creates a list, adds the elements of an iterator to it and then sorts the list according to a sort order defined by way of a comparator. |
static Vector |
vector(Iterator iter)
Deprecated. As of JRules 7.0, there is no point in using Vectors. |
static Vector |
vector(List list)
Deprecated. As of JRules 7.0, there is no point in using Vectors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List Sort(Iterator iter, Comparator c)
public static Vector vector(Iterator iter)
public static Vector vector(List list)
public static int getSize(List list)
list
is null,
or its size otherwise.
list
- A list. It can be null.
public static int getSize(Object[] array)
array
is null,
or its length otherwise.
array
- An array. It can be null.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |