Commons-Collections contains implementations, enhancements and utilities that complement the Java Collections Framework.
The Apache Commons Collections Framework component adds a significant amount of enhancements to the standard JDK collections. These enhancements come in the form of new interfaces, new implementations and utility classes.
See also the java.util
package for the standard Java collections.
Commons-Collections defines a number of key interfaces:
Interface | Description |
---|---|
org.apache.commons.collections.Bag
|
A new Collection subinterface that stores each object together
with the number of occurrences. Methods are provided to get the number of
occurrences, and to add and remove a certain number of that object.
|
org.apache.commons.collections.Buffer
|
A new Collection subinterface that allows objects to be removed
in some well-defined order. Methods enable the next item to be peeked and removed.
|
org.apache.commons.collections.BidiMap
|
A new Map subinterface that allows lookup from key to value and
from value to key with equal ease.
|
org.apache.commons.collections.OrderedMap
|
A new Map subinterface that is used when a map has an order, but is
not sorted. Methods enable bidirectional iteration through the map.
|
org.apache.commons.collections.MapIterator
|
A new Iterator subinterface specially designed for maps. This iterator
avoids the need for entrySet iteration of a map, and is simpler to use.
|
org.apache.commons.collections.ResettableIterator
|
A new Iterator subinterface that allows the iteration to be reset back
to the start. Many iterators in this library have this functionality.
|
org.apache.commons.collections.Closure org.apache.commons.collections.Predicate org.apache.commons.collections.Transformer org.apache.commons.collections.Factory |
A group of functor interfaces that provide plugin behaviour to various collections and utilities. |
In addition to the interfaces, there are many implementations. Consult each subpackage for full details of these.
Package | Description |
---|---|
org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
org.apache.commons.collections4.bag | |
org.apache.commons.collections4.bidimap | |
org.apache.commons.collections4.collection |
This package contains implementations of the
Collection interface. |
org.apache.commons.collections4.comparators |
This package contains implementations of the
Comparator interface. |
org.apache.commons.collections4.functors |
This package contains implementations of the
Closure ,
Predicate ,
Transformer and
Factory interfaces. |
org.apache.commons.collections4.iterators |
This package contains implementations of the
Iterator interface. |
org.apache.commons.collections4.keyvalue |
This package contains implementations of collection and map related key/value classes.
|
org.apache.commons.collections4.list |
This package contains implementations of the
List interface. |
org.apache.commons.collections4.map | |
org.apache.commons.collections4.multimap |
This package contains implementations of the
MultiValuedMap interfaces. |
org.apache.commons.collections4.multiset |
This package contains implementations of the
MultiSet and
SortedMultiSet interfaces. |
org.apache.commons.collections4.queue |
This package contains implementations for the
Queue interface. |
org.apache.commons.collections4.sequence |
This package provides classes to compare two sequences of objects.
|
org.apache.commons.collections4.set |
This package contains implementations of the
Set ,
SortedSet and
NavigableSet interfaces. |
org.apache.commons.collections4.splitmap | |
org.apache.commons.collections4.trie |
This package contains implementations of the
Trie interface. |
org.apache.commons.collections4.trie.analyzer |
This package contains various
KeyAnalyzer implementations. |
Copyright © 2001-2019 - Apache Software Foundation