Package org.apache.openjpa.lib.util.collections
commons-collections4 import.
todo: this can be simplified/reduced to openjpa usage (drop abstractions + not used methods).
-
Interface Summary Interface Description BidiMap<K,V> Defines a map that allows bidirectional lookup between key and values.BoundedMap<K,V> Defines a map that is bounded in size.IterableMap<K,V> Defines a map that can be iterated directly without needing to create an entry set.IterableSortedMap<K,V> SortedMap
+OrderedMap
.KeyValue<K,V> Defines a simple key value pair.MapIterator<K,V> Defines an iterator that operates over aMap
.OrderedBidiMap<K,V> Defines a map that allows bidirectional lookup between key and values and retains and provides access to an ordering.OrderedIterator<E> Defines an iterator that operates over an ordered container.OrderedMap<K,V> Defines a map that maintains order and allows both forward and backward iteration through that order.OrderedMapIterator<K,V> Defines an iterator that operates over an orderedMap
.ResettableIterator<E> Defines an iterator that can be reset back to an initial state.ResettableListIterator<E> Defines a list iterator that can be reset back to an initial state.SortedBidiMap<K,V> Defines a map that allows bidirectional lookup between key and values and retains both keys and values in sorted order.Unmodifiable Marker interface for collections, maps and iterators that are unmodifiable. -
Class Summary Class Description AbstractCollectionDecorator<E> Decorates anotherCollection
to provide additional behaviour.AbstractDualBidiMap<K,V> AbstractBidiMap
implemented using two maps.AbstractDualBidiMap.BidiMapIterator<K,V> Inner class MapIterator.AbstractDualBidiMap.EntrySet<K,V> Inner class EntrySet.AbstractDualBidiMap.EntrySetIterator<K,V> Inner class EntrySetIterator.AbstractDualBidiMap.KeySet<K> Inner class KeySet.AbstractDualBidiMap.KeySetIterator<K> Inner class KeySetIterator.AbstractDualBidiMap.MapEntry<K,V> Inner class MapEntry.AbstractDualBidiMap.Values<V> Inner class Values.AbstractDualBidiMap.ValuesIterator<V> Inner class ValuesIterator.AbstractDualBidiMap.View<K,V,E> Inner class View.AbstractEmptyMapIterator<K,V> Provides an implementation of an empty map iterator.AbstractHashedMap<K,V> An abstract implementation of a hash-based map which provides numerous points for subclasses to override.AbstractHashedMap.EntrySet<K,V> EntrySet implementation.AbstractHashedMap.EntrySetIterator<K,V> EntrySet iterator.AbstractHashedMap.HashEntry<K,V> HashEntry used to store the data.AbstractHashedMap.HashIterator<K,V> Base IteratorAbstractHashedMap.HashMapIterator<K,V> MapIterator implementation.AbstractHashedMap.KeySet<K> KeySet implementation.AbstractHashedMap.KeySetIterator<K> KeySet iterator.AbstractHashedMap.Values<V> Values implementation.AbstractHashedMap.ValuesIterator<V> Values iterator.AbstractIterableMap<K,V> Provide a basicIterableMap
implementation.AbstractIteratorDecorator<E> Provides basic behaviour for decorating an iterator with extra functionality.AbstractKeyValue<K,V> Abstract pair class to assist with creatingKeyValue
andMap.Entry
implementations.AbstractLinkedMap<K,V> An abstract implementation of a hash-based map that links entries to create an ordered map and which provides numerous points for subclasses to override.AbstractLinkedMap.EntrySetIterator<K,V> EntrySet iterator.AbstractLinkedMap.KeySetIterator<K> KeySet iterator.AbstractLinkedMap.LinkEntry<K,V> LinkEntry that stores the data.AbstractLinkedMap.LinkIterator<K,V> Base Iterator that iterates in link order.AbstractLinkedMap.LinkMapIterator<K,V> MapIterator implementation.AbstractLinkedMap.ValuesIterator<V> Values iterator.AbstractListDecorator<E> Decorates anotherList
to provide additional behaviour.AbstractMapDecorator<K,V> Provides a base decorator that enables additional functionality to be added to a Map via decoration.AbstractMapEntry<K,V> Abstract Pair class to assist with creating correctMap.Entry
implementations.AbstractMapEntryDecorator<K,V> Provides a base decorator that allows additional functionality to be added to aMap.Entry
.AbstractOrderedMapDecorator<K,V> Provides a base decorator that enables additional functionality to be added to an OrderedMap via decoration.AbstractReferenceMap<K,V> An abstract implementation of a hash-based map that allows the entries to be removed by the garbage collector.AbstractReferenceMap.ReferenceEntry<K,V> A MapEntry implementation for the map.AbstractSerializableListDecorator<E> Serializable subclass of AbstractListDecorator.AbstractSerializableSetDecorator<E> Serializable subclass of AbstractSetDecorator.AbstractSetDecorator<E> Decorates anotherSet
to provide additional behaviour.AbstractSortedMapDecorator<K,V> Provides a base decorator that enables additional functionality to be added to a Map via decoration.AbstractSortedMapDecorator.SortedMapIterator<K,V> OrderedMapIterator implementation.AbstractUntypedIteratorDecorator<I,O> Provides basic behaviour for decorating an iterator with extra functionality without committing the generic type of the Iterator implementation.ComparableComparator<E extends java.lang.Comparable<? super E>> AComparator
that comparesComparable
objects.ComparatorChain<E> A ComparatorChain is a Comparator that wraps one or more Comparators in sequence.DefaultMapEntry<K,V> A restricted implementation ofMap.Entry
that prevents theMap.Entry
contract from being broken.DualHashBidiMap<K,V> Implementation ofBidiMap
that uses twoHashMap
instances.DualTreeBidiMap<K,V> Implementation ofBidiMap
that uses twoTreeMap
instances.DualTreeBidiMap.BidiOrderedMapIterator<K,V> Inner class MapIterator.DualTreeBidiMap.ViewMap<K,V> Internal sorted map view.EmptyIterator<E> Provides an implementation of an empty iterator.EmptyMapIterator<K,V> Provides an implementation of an empty map iterator.EmptyOrderedIterator<E> Provides an implementation of an empty ordered iterator.EmptyOrderedMapIterator<K,V> Provides an implementation of an empty ordered map iterator.EntrySetToMapIteratorAdapter<K,V> Adapts a Map entrySet to the MapIterator interface.FilterIterator<E> Decorates anotherIterator
using a predicate to filter elements.IteratorChain<E> An IteratorChain is an Iterator that wraps a number of Iterators.LinkedMap<K,V> AMap
implementation that maintains the order of the entries.ListIteratorWrapper<E> Converts anIterator
into aResettableListIterator
.LRUMap<K,V> AMap
implementation with a fixed maximum size which removes the least recently used entry if an entry is added when full.MapBackedSet<E,V> ReferenceIdentityMap<K,V> AMap
implementation that allows mappings to be removed by the garbage collector and matches keys and values based on==
notequals()
.ReferenceMap<K,V> AMap
implementation that allows mappings to be removed by the garbage collector.TreeBidiMap<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> Red-Black tree-based implementation of BidiMap where all objects added implement theComparable
interface.UnmodifiableCollection<E> Decorates anotherCollection
to ensure it can't be altered.UnmodifiableEntrySet<K,V> Decorates a map entrySet
to ensure it can't be altered.UnmodifiableIterator<E> Decorates an iterator such that it cannot be modified.UnmodifiableList<E> Decorates anotherList
to ensure it can't be altered.UnmodifiableListIterator<E> Decorates a list iterator such that it cannot be modified.UnmodifiableMapEntry<K,V> AMap.Entry
that throws UnsupportedOperationException whensetValue
is called.UnmodifiableOrderedMap<K,V> Decorates anotherOrderedMap
to ensure it can't be altered.UnmodifiableOrderedMapIterator<K,V> Decorates an ordered map iterator such that it cannot be modified.UnmodifiableSet<E> Decorates anotherSet
to ensure it can't be altered. -
Enum Summary Enum Description AbstractReferenceMap.ReferenceStrength Reference type enum.