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 TypeMethodDescriptionvoid
void
void
void
void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) static <K,
V> ImmutableMultivaluedMap <K, V> empty()
Returns an empty immutable map.entrySet()
boolean
boolean
equalsIgnoreValueOrder
(javax.ws.rs.core.MultivaluedMap<K, V> otherMap) int
hashCode()
boolean
isEmpty()
keySet()
void
void
int
size()
toString()
Collection
<List<V>> values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
delegate
-
-
Constructor Details
-
ImmutableMultivaluedMap
Creates a new ImmutableMultivaluedMap.- Parameters:
delegate
- the underlying MultivaluedMap
-
-
Method Details
-
empty
Returns an empty immutable map.- Returns:
- an empty immutable map.
-
equalsIgnoreValueOrder
-
putSingle
-
add
-
getFirst
-
addAll
-
addAll
-
addFirst
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-
equals
-
hashCode
public int hashCode()
-