Uses of Interface
org.apache.commons.collections4.BidiMap
Package
Description
Interfaces and utilities shared across all packages.
-
Uses of BidiMap in org.apache.commons.collections4
Modifier and TypeInterfaceDescriptioninterface
OrderedBidiMap<K,
V> Defines a map that allows bidirectional lookup between key and values and retains and provides access to an ordering.interface
SortedBidiMap<K,
V> Defines a map that allows bidirectional lookup between key and values and retains both keys and values in sorted order.Modifier and TypeMethodDescriptionBidiMap.inverseBidiMap()
Gets a view of this map where the keys and values are reversed. -
Uses of BidiMap in org.apache.commons.collections4.bidimap
Modifier and TypeClassDescriptionclass
Provides a base decorator that enables additional functionality to be added to a BidiMap via decoration.class
AbstractDualBidiMap<K,
V> AbstractBidiMap
implemented using two maps.class
Provides a base decorator that enables additional functionality to be added to an OrderedBidiMap via decoration.class
Provides a base decorator that enables additional functionality to be added to a SortedBidiMap via decoration.class
DualHashBidiMap<K,
V> class
ImplementsBidiMap
with twoLinkedHashMap
instances.class
DualTreeBidiMap<K,
V> class
TreeBidiMap<K extends Comparable<K>,
V extends Comparable<V>> Red-Black tree-based implementation of BidiMap where all objects added implement theComparable
interface.final class
UnmodifiableBidiMap<K,
V> Decorates anotherBidiMap
to ensure it can't be altered.final class
Decorates anotherOrderedBidiMap
to ensure it can't be altered.final class
Decorates anotherSortedBidiMap
to ensure it can't be altered.Modifier and TypeMethodDescriptionCreates a new instance of the subclass.Creates a new instance of this object.DualLinkedHashBidiMap.createBidiMap
(Map<V, K> normalMap, Map<K, V> reverseMap, BidiMap<K, V> inverseBidiMap) Creates a new instance of this object.AbstractBidiMapDecorator.decorated()
Gets the map being decorated.AbstractBidiMapDecorator.inverseBidiMap()
AbstractDualBidiMap.inverseBidiMap()
UnmodifiableBidiMap.inverseBidiMap()
static <K,
V> BidiMap <K, V> UnmodifiableBidiMap.unmodifiableBidiMap
(BidiMap<? extends K, ? extends V> map) Factory method to create an unmodifiable map.Modifier and TypeMethodDescriptionCreates a new instance of the subclass.Creates a new instance of this object.DualLinkedHashBidiMap.createBidiMap
(Map<V, K> normalMap, Map<K, V> reverseMap, BidiMap<K, V> inverseBidiMap) Creates a new instance of this object.protected DualTreeBidiMap
<V, K> Creates a new instance of this object.static <K,
V> BidiMap <K, V> UnmodifiableBidiMap.unmodifiableBidiMap
(BidiMap<? extends K, ? extends V> map) Factory method to create an unmodifiable map.ModifierConstructorDescriptionprotected
AbstractBidiMapDecorator
(BidiMap<K, V> map) Constructor that wraps (not copies).protected
Constructs a map that decorates the specified maps, used by the subclasscreateBidiMap
implementation.protected
Constructs aHashBidiMap
that decorates the specified maps.protected
Constructs aLinkedHashBidiMap
that decorates the specified maps.protected
Constructs aDualTreeBidiMap
that decorates the specified maps.