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