Class MultivaluedStringMap
java.lang.Object
org.glassfish.tyrus.core.uri.internal.AbstractMultivaluedMap<String,String>
org.glassfish.tyrus.core.uri.internal.MultivaluedHashMap<String,String>
org.glassfish.tyrus.core.uri.internal.MultivaluedStringMap
- All Implemented Interfaces:
Serializable
,Map<String,
,List<String>> MultivaluedMap<String,
String>
An implementation of
MultivaluedMap
where keys and values are
instances of String.
This map has an additional ability to instantiate classes using the individual string values as a constructor parameters.
- Author:
- Paul Sandoz, Marek Potociar
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.glassfish.tyrus.core.uri.internal.AbstractMultivaluedMap
store
-
Constructor Summary
ConstructorDescriptionMultivaluedStringMap
(int initialCapacity) MultivaluedStringMap
(int initialCapacity, float loadFactor) MultivaluedStringMap
(MultivaluedMap<? extends String, ? extends String> map) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFirstNull
(List<String> values) Define the behavior for adding anull
values to the first position in the value list.protected void
Define the behavior for adding anull
values to the value list.final <A> A
final <A> A
Methods inherited from class org.glassfish.tyrus.core.uri.internal.AbstractMultivaluedMap
add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, get, getFirst, getValues, hashCode, isEmpty, keySet, put, putAll, putSingle, remove, size, toString, 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
-
MultivaluedStringMap
-
MultivaluedStringMap
public MultivaluedStringMap(int initialCapacity, float loadFactor) -
MultivaluedStringMap
public MultivaluedStringMap(int initialCapacity) -
MultivaluedStringMap
public MultivaluedStringMap()
-
-
Method Details
-
addFirstNull
Description copied from class:AbstractMultivaluedMap
Define the behavior for adding anull
values to the first position in the value list.Default implementation is a no-op, i.e. the
null
values are ignored. Overriding implementations may modify this behavior by providing their own definitions of this method.- Overrides:
addFirstNull
in classAbstractMultivaluedMap<String,
String> - Parameters:
values
- value list where thenull
value addition is being requested.
-
addNull
Description copied from class:AbstractMultivaluedMap
Define the behavior for adding anull
values to the value list.Default implementation is a no-op, i.e. the
null
values are ignored. Overriding implementations may modify this behavior by providing their own definitions of this method.- Overrides:
addNull
in classAbstractMultivaluedMap<String,
String> - Parameters:
values
- value list where thenull
value addition is being requested.
-
getFirst
-
getFirst
-