public final class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> E |
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.
|
public static <E> E getLastNonNull(List<E> l)
l - The list. It may be null, in which case null is
returned.Copyright © 2015. All Rights Reserved.