- Commons Collections - Discussion
- Commons Collections - Useful Resources
- Commons Collections - Quick Guide
- Commons Collections - Union
- Commons Collections - Subtraction
- Commons Collections - Intersection
- Commons Collections - Inclusion
- Commons Collections - Safe Empty Checks
- Commons Collections - Filtering Objects
- Commons Collections - Transforming Objects
- Commons Collections - Merge & Sort
- Commons Collections - Ignore Null
- Commons Collections - OrderedMap Interface
- Commons Collections - MapIterator Interface
- Commons Collections - BidiMap Interface
- Commons Collections - Bag Interface
- Commons Collections - Environment Setup
- Commons Collections - Overview
- Commons Collections - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache Commons Collections - Overview
Commons Collections augments Java Collections Framework. It provides several features to make collection handpng easy. It provides many new interfaces, implementations and utipties.
The main features of Commons Collections are as follows −
Bag − Bag interfaces simppfies the collections, which have multiple number of copies of each object.
BidiMap − BidiMap interfaces provide Bi-Directional maps, which can be used to lookup values using keys or keys using values.
MapIterator − MapIterator interface provide simple and easy iteration over maps.
Transforming Decorators − Transforming decorators can alter every object of a collection as and when it is added to the collection.
Composite Collections − Composite collections are used, where multiple collections are required to be handled uniformly.
Ordered Map − Ordered Maps retain the order, in which elements are added in.
Ordered Set − Ordered Sets retain the order, in which elements are added in.
Reference map − Reference map allows key/values to be garbage collected under close control.
Comparator implementations − Many Comparator implementations are available.
Iterator implementations − Many Iterator implementations are available.
Adapter Classes − Adapter classes are available to convert array and enumerations to collections.
Utipties − Utipties are available to test or create typical set-theory properties of collections such as union, intersection. Supports Closure.