CollUtil.isNotEmpty()
时间: 2024-04-28 22:24:24 浏览: 125
StringUtils工具包中字符串非空判断isNotEmpty和isNotBlank的区别
5星 · 资源好评率100%
CollUtil.isNotEmpty()是一个方法,用于判断一个集合是否非空。它是通过调用CollectionUtils.isNotEmpty()方法来实现的。该方法可以同时处理集合为null或者size为0的情况,因此非常方便。在CollUtil类中,还有一个与之相对应的方法CollUtil.isEmpty(),用于判断集合是否为空。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [CollectionUtils.isEmpty().isNotEmpty()](https://blog.csdn.net/qq_41981122/article/details/102826725)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [使用CollectionUtils.isNotEmpty() 判断 List Set 是否为null](https://blog.csdn.net/zl_1987/article/details/51849486)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文