//判断list集合为空
org.apache.commons.collections4.CollectionUtils.isEmpty();
//判断list集合不为空
org.apache.commons.collections4.CollectionUtils.isNotEmpty();
//判断字符串是否相等
org.apache.commons.lang3.StringUtils.equals
//判断字符串是否匹配任意一个值
org.apache.commons.lang3.StringUtils.equalsAny
//判断字符串为空
org.apache.commons.lang3.StringUtils.isBlank();
//判断字符串不为空
org.apache.commons.lang3.StringUtils.isNotBlank();
//判断对象为空
org.apache.commons.lang3.ObjectUtils.isEmpty;
//判断对象不为空
org.apache.commons.lang3.ObjectUtils.isNotEmpty;
//字符串去除空格
org.apache.commons.lang3.StringUtils.trimToEmpty();
判断对象、字符串、集合、字符串是否相等、字符串是否匹配任意一个值、字符串去空格。
最新推荐文章于 2023-05-15 21:20:28 发布