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 |
isEmpty(Map<?,?> map)
Return
true if the supplied Map is null or empty. |
static boolean |
isNotEmpty(Collection<?> collection)
Is not empty boolean.
|
static boolean |
isNotEmpty(Map<?,?> map)
Is not empty boolean.
|
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)
collection - the collectionpublic static boolean isEmpty(Map<?,?> map)
true if the supplied Map is null or empty.
Otherwise, return false.map - the Map to checkpublic static boolean isNotEmpty(Map<?,?> map)
map - the mapCopyright © 2024. All rights reserved.