Class ImmutableMultivaluedMap<K,V>
java.lang.Object
org.glassfish.jersey.internal.util.collection.ImmutableMultivaluedMap<K,V>
- Type Parameters:
K- the keyV- the value
public class ImmutableMultivaluedMap<K,V>
extends Object
implements javax.ws.rs.core.MultivaluedMap<K,V>
An immutable view of a
MultivaluedMap.-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImmutableMultivaluedMap(javax.ws.rs.core.MultivaluedMap<K, V> delegate) Creates a new ImmutableMultivaluedMap. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) static <K,V> ImmutableMultivaluedMap <K, V> empty()Returns an empty immutable map.entrySet()booleanbooleanequalsIgnoreValueOrder(javax.ws.rs.core.MultivaluedMap<K, V> otherMap) inthashCode()booleanisEmpty()keySet()voidvoidintsize()toString()Collection<List<V>> values()Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
delegate
-
-
Constructor Details
-
ImmutableMultivaluedMap
-
-
Method Details
-
empty
Returns an empty immutable map.- Returns:
- an empty immutable map.
-
equalsIgnoreValueOrder
-
putSingle
-
add
-
getFirst
-
addAll
-
addAll
-
addFirst
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
toString
-
equals
-
hashCode
-