public class If extends Object
| 构造器和说明 |
|---|
If() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
everFalse(Object o)
总是假的
|
static boolean |
everTrue(Object o)
总是真的
|
static boolean |
isBlank(CharSequence cs)
判断字符串是否为空
|
static boolean |
isEmpty(Collection<?> coll)
校验集合是否为空
|
static boolean |
isEmpty(int[] array)
判断数据是否为空
|
static boolean |
isEmpty(long[] array)
判断数据是否为空
|
static boolean |
isEmpty(Map<?,?> map)
判断Map是否为空
|
static boolean |
isEmpty(Object[] array)
判断数据是否为空
|
static boolean |
isNull(Object object)
判断对象是否为空
|
static boolean |
notBlank(CharSequence cs)
判断字符串是否不为空
|
static boolean |
notEmpty(Collection<?> coll)
校验集合是否不为空
|
static boolean |
notEmpty(int[] array)
判断数组是否不为空
|
static boolean |
notEmpty(long[] array)
判断数组是否不为空
|
static boolean |
notEmpty(Map<?,?> map)
判断Map是否不为空
|
static boolean |
notEmpty(Object[] array)
判断数组是否不为空
|
static boolean |
notNull(Object object)
判断对象是否非空
|
public static boolean everTrue(Object o)
o - public static boolean everFalse(Object o)
o - public static boolean isEmpty(Collection<?> coll)
coll - 入参public static boolean notEmpty(Collection<?> coll)
coll - 入参public static boolean isEmpty(Map<?,?> map)
map - 入参public static boolean notEmpty(Map<?,?> map)
map - 入参public static boolean isEmpty(Object[] array)
array - 长度public static boolean notEmpty(Object[] array)
array - 数组isEmpty(Object[])public static boolean isEmpty(int[] array)
array - 长度public static boolean notEmpty(int[] array)
array - 数组isEmpty(Object[])public static boolean isEmpty(long[] array)
array - 长度public static boolean notEmpty(long[] array)
array - 数组isEmpty(Object[])public static boolean isBlank(CharSequence cs)
cs - 需要判断字符串public static boolean notBlank(CharSequence cs)
cs - 需要判断字符串public static boolean isNull(Object object)
object - ignorepublic static boolean notNull(Object object)
object - ignoreCopyright © 2020. All rights reserved.