public class CollectionUtil extends Object
| Constructor and Description |
|---|
CollectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Enumeration<T> |
createEnumerationFromIterator(Iterator<T> it)
Creates an Enumeration out of the given Iterator.
|
static <T> T |
first(List<T> list)
Returns the first element of the list, null if the list is null or empty.
|
static boolean |
isEmpty(Collection<?> collection)
Whether the given collection is null or has no elements.
|
public static <T> Enumeration<T> createEnumerationFromIterator(Iterator<T> it)
T - it - public static <T> T first(List<T> list)
T - list - public static boolean isEmpty(Collection<?> collection)
collection - Copyright © 2009–2017. All rights reserved.