CollectionUtils.isEmpty
时间: 2024-01-16 11:04:44 浏览: 165
CollectionUtils:CollectionUtils 类
CollectionUtils.isEmpty是Apache Commons Collections库中的一个方法,用于判断集合是否为空。它可以正常处理集合为null的情况,而不会引发空指针异常。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [集合判空CollectionUtils.isEmpty()](https://blog.csdn.net/m0_46845579/article/details/126315293)[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^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* *3* [CollectionUtils.isEmpty()和CollectionUtils.isNotEmpty()的作用](https://blog.csdn.net/xijinno1/article/details/129346126)[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^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文