public class CollectionUtils extends Object
| 构造器和说明 |
|---|
CollectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
allIsEmpty(Collection<?> coll)
不为 null 但只有空元素
|
static boolean |
allIsNotEmpty(Collection<?> coll)
不为 null 且不只有空元素
|
static boolean |
isEmpty(Collection<?> coll)
为 null 或没有元素
|
static boolean |
isNotEmpty(Collection<?> coll)
不为 null 且有元素
|
static boolean |
sizeIsEmpty(Object obj)
不为 null 但内容为空
|
static boolean |
sizeIsNotEmpty(Object obj)
不为 null 且内容不为空
|
public static boolean isEmpty(Collection<?> coll)
coll - public static boolean isNotEmpty(Collection<?> coll)
coll - public static boolean sizeIsEmpty(Object obj)
obj - public static boolean sizeIsNotEmpty(Object obj)
obj - public static boolean allIsEmpty(Collection<?> coll)
coll - public static boolean allIsNotEmpty(Collection<?> coll)
coll - Copyright © 2021. All rights reserved.