|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap cc.mallet.grmm.util.THashMultiMap
public class THashMultiMap
Version of THashMap where every key is mapped to a list of objects.
The put method adds a value to the list associated with a key, without removing any previous values. The get method returns the list of all objects associated with key. No effort is made to remove duplicates. Created: Dec 13, 2005
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
THashMultiMap()
|
|
THashMultiMap(int initialCapacity)
|
Method Summary | |
---|---|
void |
add(java.lang.Object key)
Adds key as a key with an empty list as a value. |
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object o)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds value to the list of things mapped to by key. |
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public THashMultiMap()
public THashMultiMap(int initialCapacity)
Method Detail |
---|
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class java.util.AbstractMap
public void add(java.lang.Object key)
public java.lang.Object get(java.lang.Object o)
get
in interface java.util.Map
get
in class java.util.AbstractMap
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.AbstractMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |