K
- the key typeV
- the value typepublic class CmsManyToOneMap<K,V> extends java.lang.Object
It also implements efficient removal of values, not just keys.
Constructor and Description |
---|
CmsManyToOneMap()
Creates a new instance.
|
CmsManyToOneMap(CmsManyToOneMap<K,V> other)
Creates a new instance by copying the data from another one.
|
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
Gets the value for a key.
|
void |
put(K key,
V value)
Associates a value with a key.
|
void |
remove(K key)
Removes the entry with the given key.
|
void |
removeValue(V value)
Removes all entries with the given value.
|
public CmsManyToOneMap()
public CmsManyToOneMap(CmsManyToOneMap<K,V> other)
other
- the other map to copy the data frompublic V get(K key)
key
- the keypublic void put(K key, V value)
key
- the keyvalue
- the valuepublic void removeValue(V value)
value
- the value