|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.misc.CollectionUtils
public final class CollectionUtils
Utilities for collections.
| Method Summary | ||
|---|---|---|
static
|
getLastNonNull(List<E> l)
Returns the last non-null element in the given list; or, if there is no non-null element, it returns null. |
|
static int[] |
toArray(List<Integer> l)
Returns the non-null integers in the given list as an array. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E> E getLastNonNull(List<E> l)
l - The list. It may be null, in which case null is
returned.
public static int[] toArray(List<Integer> l)
l - The list. It may be null, in which case null is
returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||