public abstract class CollectionUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(java.util.Collection<?> coll)
Null-safe check if the specified collection is empty.
|
static boolean |
isEmptyCollection(java.lang.Object object) |
static boolean |
isNotEmpty(java.util.Collection<?> coll)
Null-safe check if the specified collection is not empty.
|
public static boolean isEmpty(java.util.Collection<?> coll)
Null returns true.
coll - the collection to check, may be nullpublic static boolean isEmptyCollection(java.lang.Object object)
public static boolean isNotEmpty(java.util.Collection<?> coll)
Null returns false.
coll - the collection to check, may be null