public final class CollectionUtils extends Object
Collections.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getFirst(Collection<T> collection)
Returns the first element from the provided collection.
|
public static <T> T getFirst(Collection<T> collection)
collection - the collection to get the element fromnull if the
collection is null or empty.