public final class CollectionUtils extends Object
Collection instances.| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(Collection<?> collection)
Null-safe check if the specified collection is empty.
|
static boolean |
isNotEmpty(Collection<?> collection)
Null-safe check if the specified collection is not empty.
|
public static boolean isEmpty(Collection<?> collection)
collection - the collection to check, may be nullpublic static boolean isNotEmpty(Collection<?> collection)
collection - the collection to check, may be nullCopyright © 2022 Baidu, Inc.. All rights reserved.