Package org.apache.commons.collections
package org.apache.commons.collections
This package contains the interfaces and utilities shared across all the subpackages of this component.
The following collection implementations are provided in the package:
- ArrayStack - a non synchronized Stack that follows the same API as java util Stack
- ExtendedProperties - extends the Properties class to add extra functionality
-
ClassDescriptionAn implementation of the
Stack
API that is based on anArrayList
instead of aVector
, so it is not synchronized to protect against multi-threaded access.Defines a collection that counts the number of times an object appears in the collection.Deprecated.Identical class now available in commons-beanutils (full jar version).Map entry used byBeanMap
.Defines a map that allows bidirectional lookup between key and values.Deprecated.Replaced by PriorityBuffer in buffer subpackage.Defines a collection that is bounded in size.Deprecated.Moved to buffer subpackage.Defines a map that is bounded in size.Defines a collection that allows objects to be removed in some well-defined order.The BufferOverflowException is used when the buffer's capacity has been exceeded.The BufferUnderflowException is used when the buffer is already empty.Provides utility methods and decorators forBuffer
instances.Defines a functor interface implemented by classes that do something.ClosureUtils
provides reference implementations and utilities for the Closure functor interface.Provides utility methods and decorators forCollection
instances.Provides convenient static utility methods forComparator
objects.Deprecated.Use new version in list subpackage, which has been rewritten and now returns the cursor from the listIterator method.Deprecated.Moved to bag subpackage as AbstractMapBag.Deprecated.Use the version in the keyvalue subpackage.Deprecated.Replaced by TreeBidiMap in bidimap subpackage.Provides utility methods forEnumeration
instances.This class extends normal Java properties by adding the possibility to use the same key many times concatenating the value strings instead of overwriting them.Defines a functor interface implemented by classes that create objects.FactoryUtils
provides reference implementations and utilities for the Factory functor interface.A customized implementation ofjava.util.ArrayList
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes.A customized implementation ofjava.util.HashMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes.A customized implementation ofjava.util.TreeMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes.Runtime exception thrown from functors.Deprecated.Moved to bag subpackage and rewritten internally.Defines a map that can be iterated directly without needing to create an entry set.Provides static utility methods and decorators forIterator
instances.Defines a simple key value pair.Provides utility methods and decorators forList
instances.Deprecated.Moved to map subpackage.Defines an iterator that operates over aMap
.Deprecated.Class now available as MultiValueMap in map subpackage.Defines a map that holds a collection of values against each key.Defines a map that allows bidirectional lookup between key and values and retains and provides access to an ordering.Defines an iterator that operates over an ordered collection.Defines a map that maintains order and allows both forward and backward iteration through that order.Defines an iterator that operates over an orderedMap
.Defines a functor interface implemented by classes that perform a predicate test on an object.PredicateUtils
provides reference implementations and utilities for the Predicate functor interface.Deprecated.Replaced by the Buffer interface and implementations in buffer subpackage.Deprecated.Moved to map subpackage as AbstractMapDecorator.Deprecated.Moved to map subpackage.Defines an iterator that can be reset back to an initial state.Defines a list iterator that can be reset back to an initial state.Deprecated.Replaced by LinkedMap and ListOrderedMap in map subpackage.Defines a type ofBag
that maintains a sorted order among its unique representative members.Defines a map that allows bidirectional lookup between key and values and retains both keys and values in sorted order.Deprecated.Moved to map subpackage.Deprecated.PriorityQueue is replaced by the Buffer interface, see buffer subpackage.Defines a functor interface implemented by classes that transform one object into another.TransformerUtils
provides reference implementations and utilities for the Transformer functor interface.Deprecated.Moved to bag subpackage and rewritten internally.Deprecated.Moved to buffer subpackage.Marker interface for collections, maps and iterators that are unmodifiable.