K
- the keyV
- the valuepublic class ImmutableMultivaluedMap<K,V> extends Object implements MultivaluedMap<K,V>
MultivaluedMap
.Constructor and Description |
---|
ImmutableMultivaluedMap(MultivaluedMap<K,V> delegate)
Creates a new ImmutableMultivaluedMap.
|
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value) |
void |
addAll(K key,
List<V> valueList) |
void |
addAll(K key,
V... newValues) |
void |
addFirst(K key,
V value) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static <K,V> ImmutableMultivaluedMap<K,V> |
empty()
Returns an empty immutable map.
|
Set<Map.Entry<K,List<V>>> |
entrySet() |
boolean |
equals(Object o) |
boolean |
equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap) |
List<V> |
get(Object key) |
V |
getFirst(K key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
List<V> |
put(K key,
List<V> value) |
void |
putAll(Map<? extends K,? extends List<V>> m) |
void |
putSingle(K key,
V value) |
List<V> |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<List<V>> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public ImmutableMultivaluedMap(MultivaluedMap<K,V> delegate)
delegate
- the underlying MultivaluedMappublic static <K,V> ImmutableMultivaluedMap<K,V> empty()
public boolean equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap)
equalsIgnoreValueOrder
in interface MultivaluedMap<K,V>
public void putSingle(K key, V value)
putSingle
in interface MultivaluedMap<K,V>
public void addAll(K key, V... newValues)
addAll
in interface MultivaluedMap<K,V>
public void addAll(K key, List<V> valueList)
addAll
in interface MultivaluedMap<K,V>
public void addFirst(K key, V value)
addFirst
in interface MultivaluedMap<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,List<V>>
public boolean containsValue(Object value)
containsValue
in interface Map<K,List<V>>
public boolean equals(Object o)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.