当前位置:网站首页>Judge whether the string type is empty and whether the list set is empty
Judge whether the string type is empty and whether the list set is empty
2022-06-22 01:15:00 【Elegant development】
These two need to be imported Apache My bag
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
// Determines if the set is empty
List list = new ArratList<>();
CollectionUtils.isEmpty(list);
CollectionUtils.isNotEmpty(list);
The return is boolean type ture and false
// Judge String Whether the type is empty
String string = new String();
StringUtils.isBlank(string);
StringUtils.isNotBlank(string);
The return is boolean type ture and false
边栏推荐
猜你喜欢
随机推荐
Tensorflow环境搭建
【环境踩坑】No module named ‘PyQt5‘
IDEA 提示 Duplicated code fragment (15 lines long)
Pytorch learning 01: gradient descent for simple linear regression
如何让自己的网站快速被搜索引擎找到
mysql数据库高版本 低版本
Pytorch learning 13: implement letnet and learning nn Module related basic operations
The importance of rational selection of seal clearance of hydraulic slip ring
pytorch学习08:拼接与拆分
【DailyFresh】课程记录
English grammar_ Adverb - loud /aloud / loud
4G/wifi 能耗计量插座-监测电压电流功率
[dailyfresh] course record 2
Pytorch learning 11:where and gather
03 fastjson resolving circular references
单点登录SSO与OAuth2 方案
Integer和int区别
Precautions for using timestamp type of SQLite3 database
Sum of four numbers [array sort + double pointer]
crf*. Handling of large BDB file








