K - the type of keys maintained by this mapV - the type of mapped values which can contain null valuespublic class NullableMultivaluedHashMap<K,V> extends MultivaluedHashMap<K,V>
MultivaluedMap where values can be null.store| Constructor and Description |
|---|
NullableMultivaluedHashMap() |
NullableMultivaluedHashMap(int initialCapacity) |
NullableMultivaluedHashMap(int initialCapacity,
float loadFactor) |
NullableMultivaluedHashMap(MultivaluedMap<? extends K,? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFirstNull(List<V> values)
Define the behavior for adding a
null values to the first position
in the value list. |
protected void |
addNull(List<V> values)
Define the behavior for adding a
null values to the value list. |
add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, get, getFirst, getValues, hashCode, isEmpty, keySet, put, putAll, putSingle, remove, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic NullableMultivaluedHashMap()
public NullableMultivaluedHashMap(int initialCapacity)
public NullableMultivaluedHashMap(int initialCapacity,
float loadFactor)
public NullableMultivaluedHashMap(MultivaluedMap<? extends K,? extends V> map)
protected void addFirstNull(List<V> values)
AbstractMultivaluedMapnull 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.addFirstNull in class AbstractMultivaluedMap<K,V>values - value list where the null value addition is being
requested.protected void addNull(List<V> values)
AbstractMultivaluedMapnull 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.addNull in class AbstractMultivaluedMap<K,V>values - value list where the null value addition is being
requested.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.