|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.core.ListHash<K,V>
public class ListHash<K,V>
A map from a key type to a list of the value type.
| Constructor Summary | |
|---|---|
ListHash()
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(K key)
Checks whether the map contains a given key. |
ArrayList<V> |
get(K key)
Returns the association list for key. |
void |
put(K key,
V value)
Adds value to the association list of key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListHash()
| Method Detail |
|---|
public void put(K key,
V value)
value to the association list of key.
key - the key.value - the value.public ArrayList<V> get(K key)
key.
key - the key.
public boolean containsKey(K key)
key - the key.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||