K - the type of keys maintained by this mapV - the type of mapped valuespublic class MultiMap<K,V> extends Object implements Map<K,V>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<K,LinkedList<V>> |
paramsMap |
| Constructor and Description |
|---|
MultiMap() |
MultiMap(Map<K,V> parametersMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
List<Map.Entry<K,V>> |
entryList()
Returns a
List view of the mappings contained in this map, including an entry for each value associated to the same
key. |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
List<V> |
getAll(Object key)
Returns the values to which the specified key is mapped.
|
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
void |
put(K key,
Collection<V> values)
Associates the specified value with the specified key in this map
(optional operation).
|
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> aMap) |
V |
remove(Object key) |
int |
size() |
MultiMap<K,V> |
toImmutableMultiMap() |
Map<K,? extends List<V>> |
toListValuesMap() |
String |
toString() |
Collection<V> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Map<K,LinkedList<V>> paramsMap
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public List<V> getAll(Object key)
key - the key whose associated values are to be returnedpublic void put(K key, Collection<V> values)
key - key with which the specified values are to be associatedvalues - collection of values to be associated with the specified keypublic List<Map.Entry<K,V>> entryList()
List view of the mappings contained in this map, including an entry for each value associated to the same
key.public boolean equals(Object o)
public int hashCode()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.