U
- V
- public class MapList<U,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<U,java.util.List<V>> |
map |
Constructor and Description |
---|
MapList() |
Modifier and Type | Method and Description |
---|---|
void |
add(U key,
java.util.Collection<V> vals)
Using the iterator order of values in the value, adds the
individual elements into the list under the given key.
|
void |
add(U key,
V val) |
boolean |
containsKey(U key) |
protected java.util.List<V> |
ensureList(U key) |
V |
get(U key,
int index) |
java.util.Collection<U> |
keySet() |
int |
size(U key) |
public void add(U key, java.util.Collection<V> vals)
public int size(U key)
public boolean containsKey(U key)
public java.util.Collection<U> keySet()