public class HashMapList<M,L> extends HashMap<M,List<L>> implements MapList<M,L>
| Constructor and Description |
|---|
HashMapList() |
HashMapList(Comparator<L> comparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(M key,
int index,
L value)
Inserts value to mapped list at index.
|
void |
add(M key,
L value)
Adds value to mapped list.
|
List<L> |
get(Object key)
Returns mapped list or null if not found.
|
List<L> |
set(M key,
Collection<L> value)
Replaces mapped list with collection.
|
public HashMapList()
public HashMapList(Comparator<L> comparator)
public void add(M key, L value)
MapListpublic void add(M key, int index, L value)
MapListpublic List<L> set(M key, Collection<L> value)
MapList