|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,List<V>>
de.lmu.ifi.dbs.elki.utilities.datastructures.HashMapList<K,V>
K - Key typeV - Value typepublic class HashMapList<K,V>

Multi-Associative container, that stores a list of values for a particular key.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Serial version |
| Constructor Summary | |
|---|---|
HashMapList()
Constructor. |
|
HashMapList(int initialCapacity)
Constructor with initial capacity (of the hash) |
|
| Method Summary | |
|---|---|
void |
add(K key,
V value)
Add a single value to the given key. |
boolean |
contains(K key,
V value)
Test if a given value is already present for the key. |
boolean |
containsKey(Object key)
Check that there is at least one value for the key. |
boolean |
remove(K key,
V value)
Remove a single value from the map. |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public HashMapList()
public HashMapList(int initialCapacity)
initialCapacity - initial capacity| Method Detail |
|---|
public void add(K key,
V value)
key - Keyvalue - Additional Valuepublic boolean containsKey(Object key)
containsKey in interface Map<K,List<V>>containsKey in class HashMap<K,List<V>>
public boolean remove(K key,
V value)
key - Key to removevalue - Value to remove.
public boolean contains(K key,
V value)
key - Keyvalue - Value
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||