Class ImmutableMultivaluedMap<K,V>
java.lang.Object
org.glassfish.jersey.internal.util.collection.ImmutableMultivaluedMap<K,V>
- Type Parameters:
K
- the keyV
- the value
- All Implemented Interfaces:
MultivaluedMap<K,
,V> Map<K,
List<V>>
An immutable view of a
MultivaluedMap
.- Author:
- Gili Tzabari, Michal Gajdos
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableMultivaluedMap
(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
(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
-
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
- Specified by:
equalsIgnoreValueOrder
in interfaceMultivaluedMap<K,
V>
-
putSingle
- Specified by:
putSingle
in interfaceMultivaluedMap<K,
V>
-
add
- Specified by:
add
in interfaceMultivaluedMap<K,
V>
-
getFirst
- Specified by:
getFirst
in interfaceMultivaluedMap<K,
V>
-
addAll
- Specified by:
addAll
in interfaceMultivaluedMap<K,
V>
-
addAll
- Specified by:
addAll
in interfaceMultivaluedMap<K,
V>
-
addFirst
- Specified by:
addFirst
in interfaceMultivaluedMap<K,
V>
-
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()
-