Homepage
This is a new version of the popular Jakarta Commons-Collections project. It features support for Java 1.5 Generics. Generics introduce a whole new level of usability and type-safety to the Commons-Collections classes. The functionality of the package is otherwise left unchanged.
Commons-Collections builds on the powerful Java Collections Framework by providing new collection types and implementations, including (from the Jakarta site):
  • Bag interface for collections that have a number of copies of each object
  • Buffer interface for collections that have a well defined removal order, like FIFOs
  • BidiMap interface for maps that can be looked up from value to key as well and key to value
  • MapIterator interface to provide simple and quick iteration over maps
  • Type checking decorators to ensure that only instances of a certain type can be added
  • Transforming decorators that alter each object as it is added to the collection
  • Composite collections that make multiple collections look like one
  • Ordered maps and sets that retain the order elements are added in, including an LRU based map
  • Identity map that compares objects based on their identity (==) instead of the equals method
  • Reference map that allows keys and/or values to be garbage collected under close control
  • Many comparator implementations
  • Many iterator implementations
  • Adapter classes from array and enumerations to collections
  • Utilities to test or create typical set-theory properties of collections such as union, intersection, and closure

News
Version 4.01 Released 06.30.2006
This release contains many generics enhancements to the CollectionUtils class, as well as typing improvements across the Predicate classes. It also includes several bugfixes and enhancements from the sourceforge trackers.
Version 4.0 Beta 3 Released 07.07.2005
This release is a fully-functional beta with no known bugs. A few clean-ups to Javadocs, the MultiMap interface, and the package structure. The top-level package for the project is now org.apache.commons.collections15. All unit tests pass.
Version 4.0 Beta 2 Released 06.15.2005
This release is a fully-functional beta with no known bugs. MultiMap and related classes have been overhauled to better work with Java 1.5. All unit tests pass.