|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dartra.util.CollectionTools
Static utility methods dealing with collections of objects.
Most of these methods act as replacements for J2SE functionality that is absent from J2ME CLDC 1.1 / MIDP 2.0.
Method Summary | |
static java.util.Vector |
asList(java.lang.Object[] a)
Returns a fixed-size list backed by the specified array. |
static java.util.Vector |
findAll(java.util.Vector list,
Condition cond)
Find all elements of given list that comply to given condition. |
static java.lang.Object |
findFirst(java.util.Vector list,
Condition cond)
Find the first element of given list that complies to given condition. |
static java.lang.Object[] |
toArray(java.util.Vector v,
java.lang.Object[] a)
Copies given list into given array and returns the resulting array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Vector asList(java.lang.Object[] a)
Returns a fixed-size list backed by the specified array.
public static java.lang.Object[] toArray(java.util.Vector v, java.lang.Object[] a)
Copies given list into given array and returns the resulting array.
public static java.lang.Object findFirst(java.util.Vector list, Condition cond)
Find the first element of given list that complies to given condition. If no such element is found, null is returned.
public static java.util.Vector findAll(java.util.Vector list, Condition cond)
Find all elements of given list that comply to given condition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |