A
- Type of key A. Key A is the primary key.B
- Type of key B. Key B is the secondary key.V
- Type of the valuepublic class DualKeyLinkedMap<A,B,V> extends Object
LinkedHashMap
so that the iteration order over the values and the primary
key set is the insertion order. Note that the insertion order is not affected if a primary key is
re-inserted into the map. Also note that there is no contract of the iteration order over the
secondary key set.Constructor and Description |
---|
DualKeyLinkedMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKeyA(A aKey) |
boolean |
containsKeyB(B bKey) |
A |
getKeyAByKeyB(B bKey) |
B |
getKeyBByKeyA(A aKey) |
V |
getValueByKeyA(A aKey) |
V |
getValueByKeyB(B bKey) |
Set<A> |
keySetA() |
Set<B> |
keySetB() |
V |
put(A aKey,
B bKey,
V value) |
V |
removeKeyA(A aKey) |
V |
removeKeyB(B bKey) |
int |
size() |
Collection<V> |
values() |
public int size()
public boolean containsKeyA(A aKey)
public boolean containsKeyB(B bKey)
public Collection<V> values()
public void clear()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.