public final class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
isEmpty(Collection<T> parameter)
Checks if the collection is null or empty.
|
static <T> boolean |
isNotEmpty(Collection<T> parameter)
Checks if the collection is not null and not empty.
|
public static <T> boolean isEmpty(Collection<T> parameter)
T - a type of element of collectionparameter - the collectionpublic static <T> boolean isNotEmpty(Collection<T> parameter)
T - a type of element of collectionparameter - the collectionCopyright © 2016 The Apache Software Foundation. All rights reserved.