public final class IlrCollections
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getSize(java.util.List list)
Returns the size of the list, that is, 0 if
list is null,
or its size otherwise. |
static int |
getSize(java.lang.Object[] array)
Returns the size of the array, that is, 0 if
array is null,
or its length otherwise. |
static java.util.List |
Sort(java.util.Iterator iter,
java.util.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 java.util.Vector |
vector(java.util.Iterator iter)
Deprecated.
As of JRules 7.0, there is no point in using Vectors.
|
static java.util.Vector |
vector(java.util.List list)
Deprecated.
As of JRules 7.0, there is no point in using Vectors.
|
public static java.util.List Sort(java.util.Iterator iter,
java.util.Comparator c)
public static java.util.Vector vector(java.util.Iterator iter)
public static java.util.Vector vector(java.util.List list)
public static int getSize(java.util.List list)
list is null,
or its size otherwise.list - A list. It can be null.public static int getSize(java.lang.Object[] array)
array is null,
or its length otherwise.array - An array. It can be null.© Copyright IBM Corp. 1987, 2017