public abstract class CollectionUtils extends Object
Constructor and Description |
---|
CollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmpty(Collection<?> collection)
Return
true if the supplied Collection is null or empty. |
static boolean |
isNotEmpty(Collection<?> collection)
Return
true if the supplied Collection is not null and not empty. |
public static boolean isEmpty(Collection<?> collection)
true
if the supplied Collection is null
or empty.
Otherwise, return false
.collection
- the Collection to checkpublic static boolean isNotEmpty(Collection<?> collection)
true
if the supplied Collection is not null
and not empty.
Otherwise, return false
.collection
- the Collection to checkCopyright © 2019. All rights reserved.