public final class CollectionUtils extends Object
Collection instances.| 构造器和说明 |
|---|
CollectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2019 Baidu, Inc.. All rights reserved.