public final class ObjUtil extends Object
集合对象判断工具
该工具主要用于判断集合里元素的数量Constructor and Description |
---|
ObjUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasNull(Object... objs)
检查输入的数据是否包含null值,只要一个值为null就返回true,否则为false
|
static boolean |
isAllNull(Object... objs)
判断输入的数据是否全部为null,如果是则返回为true,否则为false
|
static boolean |
isNoneNull(Object... objs)
判断输入的数据是否全部不为null,如果所有的数据都不包含null则返回为true,否则返回为false
|
public static boolean isNoneNull(Object... objs)
判断输入的数据是否全部不为null,如果所有的数据都不包含null则返回为true,否则返回为false
注意:输入参数个数为0时返回为trueobjs
- 需要判断的数据public static boolean isAllNull(Object... objs)
判断输入的数据是否全部为null,如果是则返回为true,否则为false
注意:输入参数个数为0时返回为trueobjs
- 需要判断的数据public static boolean hasNull(Object... objs)
检查输入的数据是否包含null值,只要一个值为null就返回true,否则为false
注意:输入参数个数为0时返回为falseobjs
- 需要判断的数据Copyright © 2021. All rights reserved.