[英]Is there any alternative to org.apache.commons.collections.CollectionUtils.isEmpty()?
It seems that org.apache.commons.collections.CollectionUtils doesn't contain isEmpty() anymore. 似乎org.apache.commons.collections.CollectionUtils不再包含isEmpty()了。
Is there any other "common" library, which contains the same functionality? 还有其他包含相同功能的“公共”库吗?
The Problem was the version. 问题是版本。 Imported was 3.1, isEmpty() is from 3.2 available. 导入为3.1,isEmpty()来自3.2可用。 Solution: 解:
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.