BidiMap that uses two LinkedHashMap instances.
Two LinkedHashMap instances are used in this class.
This provides fast lookups at the expense of storing two sets of map entries and two linked lists.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Ensure serialization compatibility |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DualLinkedHashBidiMap(final Map<? extends K, ? extends V>
the map whose mappings are to be placed in this map map)Constructs a |
| protected | DualLinkedHashBidiMap(final Map<K, V>
the normal direction map normalMap, final Map<V, K> the reverse direction map reverseMap, final BidiMap<V, K> the inverse BidiMap inverseBidiMap)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| protected BidiMap | Returns: new bidi mapthe normal direction map normalMap, final Map<K, V> the reverse direction map reverseMap, final BidiMap<K, V> the inverse BidiMap inverseBidiMap)Implements abstract org. |
| private void | |
| private void |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Ensure serialization compatibility | |
| DualLinkedHashBidiMap | back to summary |
|---|---|
| public DualLinkedHashBidiMap() Creates an empty | |
| DualLinkedHashBidiMap | back to summary |
|---|---|
| public DualLinkedHashBidiMap(final Map<? extends K, ? extends V> map) Constructs a
| |
| DualLinkedHashBidiMap | back to summary |
|---|---|
| protected DualLinkedHashBidiMap(final Map<K, V> normalMap, final Map<V, K> reverseMap, final BidiMap<V, K> inverseBidiMap) Constructs a | |
| createBidiMap | back to summary |
|---|---|
| protected BidiMap Implements abstract org. Creates a new instance of this object. | |
| readObject | back to summary |
|---|---|
| private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException | |
| writeObject | back to summary |
|---|---|
| private void writeObject(final ObjectOutputStream out) throws IOException | |