Commons Collections 4.0-alpha1 要求至少 Java 5 的支持,包名和 Maven 的 artifactId 和 groupId 也做了更改,避免跟 Collections 3.x 冲突。
与 3.2.1 比较的改进记录:
--------------------------
- 使用泛型和其他 Java 5 的语言特性,包括可变参数和可迭代
- 移除废弃的类、方法,这些方法改用 JDK 自带的方法
- 使用 java.util.Queue 替换 Buffer 接口
- Added concept of split maps with respective interfaces Put / Get (see also package splitmap)
- Added new Trie interface together with an implementation of a Patricia Trie
- 包名更改为 "org.apache.commons.collections4"
- 更改 maven 为 "org.apache.commons.commons-collections4"
完整的记录请看:
http://archive.apache.org/dist/commons/collections/RELEASE-NOTES.txt
http://commons.apache.org/collections/release_4_0.html
来自:开源中国社区

