| 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.bidimap |
| Modifier and Type | Interface and Description |
|---|---|
interface |
OrderedBidiMap<K
Defines a map that allows bidirectional lookup between key and values and retains and provides access to an ordering.
|
interface |
SortedBidiMap<K
Defines a map that allows bidirectional lookup between key and values and retains both keys and values in sorted order.
|
| Modifier and Type | Method and Description |
|---|---|
BidiMap |
BidiMap.inverseBidiMap()
Gets a view of this map where the keys and values are reversed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBidiMapDecorator<K
Provides a base decorator that enables additional functionality to be added to a BidiMap via decoration.
|
class |
AbstractDualBidiMap<K
Abstract
BidiMap implemented using two maps.
|
class |
AbstractOrderedBidiMapDecorator<K
Provides a base decorator that enables additional functionality to be added to an OrderedBidiMap via decoration.
|
class |
AbstractSortedBidiMapDecorator<K
Provides a base decorator that enables additional functionality to be added to a SortedBidiMap via decoration.
|
class |
DualHashBidiMap<K
|
class |
DualLinkedHashBidiMap<K
Implementation of
BidiMap that uses two
LinkedHashMap instances.
|
class |
DualTreeBidiMap<K
|
class |
TreeBidiMap<K extends Comparable
Red-Black tree-based implementation of BidiMap where all objects added implement the
Comparable interface.
|
class |
UnmodifiableBidiMap<K
Decorates another
BidiMap to ensure it can't be altered.
|
class |
UnmodifiableOrderedBidiMap<K
Decorates another
OrderedBidiMap to ensure it can't be altered.
|
class |
UnmodifiableSortedBidiMap<K
Decorates another
SortedBidiMap to ensure it can't be altered.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract BidiMap |
AbstractDualBidiMap.createBidiMap(Map
Creates a new instance of the subclass.
|
protected BidiMap |
DualLinkedHashBidiMap.createBidiMap(Map
Creates a new instance of this object.
|
protected BidiMap |
DualHashBidiMap.createBidiMap(Map
Creates a new instance of this object.
|
protected BidiMap |
AbstractBidiMapDecorator.decorated()
Gets the map being decorated.
|
BidiMap |
UnmodifiableBidiMap.inverseBidiMap()
|
BidiMap |
AbstractDualBidiMap.inverseBidiMap()
|
BidiMap |
AbstractBidiMapDecorator.inverseBidiMap()
|
static <K |
UnmodifiableBidiMap.unmodifiableBidiMap(BidiMap
Factory method to create an unmodifiable map.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract BidiMap |
AbstractDualBidiMap.createBidiMap(Map
Creates a new instance of the subclass.
|
protected BidiMap |
DualLinkedHashBidiMap.createBidiMap(Map
Creates a new instance of this object.
|
protected DualTreeBidiMap |
DualTreeBidiMap.createBidiMap(Map
Creates a new instance of this object.
|
protected BidiMap |
DualHashBidiMap.createBidiMap(Map
Creates a new instance of this object.
|
static <K |
UnmodifiableBidiMap.unmodifiableBidiMap(BidiMap
Factory method to create an unmodifiable map.
|
| Constructor and Description | |
|---|---|
AbstractBidiMapDecorator(BidiMap
Constructor that wraps (not copies).
|
|
AbstractDualBidiMap(Map
Constructs a map that decorates the specified maps, used by the subclass
createBidiMap implementation.
|
|
DualHashBidiMap(Map
Constructs a
HashBidiMap that decorates the specified maps.
|
|
DualLinkedHashBidiMap(Map
Constructs a
LinkedHashBidiMap that decorates the specified maps.
|
|
DualTreeBidiMap(Map
Constructs a
DualTreeBidiMap that decorates the specified maps.
|