public class MultivaluedStringMap extends MultivaluedHashMap<String,String>
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.store
Constructor and Description |
---|
MultivaluedStringMap() |
MultivaluedStringMap(int initialCapacity) |
MultivaluedStringMap(int initialCapacity,
float loadFactor) |
MultivaluedStringMap(MultivaluedMap<? extends String,? extends String> map) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFirstNull(List<String> values)
Define the behavior for adding a
null values to the first position in the value list. |
protected void |
addNull(List<String> values)
Define the behavior for adding a
null values to the value list. |
<A> A |
getFirst(String key,
A defaultValue) |
<A> A |
getFirst(String key,
Class<A> type) |
add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, get, getFirst, getValues, hashCode, isEmpty, keySet, put, putAll, putSingle, remove, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public MultivaluedStringMap(MultivaluedMap<? extends String,? extends String> map)
public MultivaluedStringMap(int initialCapacity, float loadFactor)
public MultivaluedStringMap(int initialCapacity)
public MultivaluedStringMap()
protected void addFirstNull(List<String> values)
AbstractMultivaluedMap
Define the behavior for adding a null
values to the first position in the value list.
null
values are ignored. Overriding implementations may modify
this behavior by providing their own definitions of this method.addFirstNull
in class AbstractMultivaluedMap<String,String>
values
- value list where the null
value addition is being requested.protected void addNull(List<String> values)
AbstractMultivaluedMap
Define the behavior for adding a null
values to the value list.
null
values are ignored. Overriding implementations may modify
this behavior by providing their own definitions of this method.addNull
in class AbstractMultivaluedMap<String,String>
values
- value list where the null
value addition is being requested.public final <A> A getFirst(String key, A defaultValue)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.