简体   繁体   English

除了org.apache.commons.collections.CollectionUtils.isEmpty()以外,还有其他选择吗?

[英]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.

相关问题 apache.commons.collections.CollectionUtils是否有可行的通用替代方案? - Is there a viable generic alternative to apache.commons.collections.CollectionUtils? NoClassDefFoundError:org / apache / commons / collections / IteratorUtils - NoClassDefFoundError: org/apache/commons/collections/IteratorUtils org.apache.commons.collections.map.ListOrderedMap - org.apache.commons.collections.map.ListOrderedMap 如何导入 org.apache.commons.collections4 - How to import org.apache.commons.collections4 java.lang.String#isEmpty()与org.apache.commons.lang.StringUtils#isEmpty() - java.lang.String#isEmpty() vs org.apache.commons.lang.StringUtils#isEmpty() 在Maven中,“ org.apache.commons.collections:commons-collections”与“ commons-collections:commons-collections”相同吗? - In maven it's “org.apache.commons.collections:commons-collections” the same as “commons-collections:commons-collections”? java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap - java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap 休眠java.lang.NoClassDefFoundError:org / apache / commons / collections / MultiMap - Hibernate java.lang.NoClassDefFoundError: org/apache/commons/collections/MultiMap OSGI - 缺少导入的包= org.apache.commons.collections - OSGI - missing imported package=org.apache.commons.collections java.lang.ClassNotFoundException:org.apache.commons.collections4.ListValuedMap - java.lang.ClassNotFoundException: org.apache.commons.collections4.ListValuedMap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM