public class BasicMultiMap<K,V> extends Object implements MultiMap<K,V>, Serializable
| Constructor and Description |
|---|
BasicMultiMap() |
BasicMultiMap(Map<K,List<V>> impl) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
V value) |
void |
add(K key,
V value,
int index) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
V |
get(Object key,
int index) |
List<V> |
getAll(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
int |
length(Object key) |
V |
put(K key,
V value) |
V |
put(K key,
V value,
int index) |
List<V> |
putAll(K key,
List<V> values) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
V |
remove(Object key,
int index) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic BasicMultiMap()
public BasicMultiMap(Map<K,List<V>> impl)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>