public class MultivaluedTreeMap<K,V> extends Object implements MultivaluedMap<K,V>, Serializable
| Constructor and Description |
|---|
MultivaluedTreeMap() |
MultivaluedTreeMap(Comparator<K> keyComparator)
Used to create a CaseInsensitiveMap
|
MultivaluedTreeMap(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
V value)
Add a value to the current list of values for the supplied key.
|
void |
addAll(K key,
List<V> valueList)
Add all the values from the supplied value list to the current list of
values for the supplied key.
|
void |
addAll(K key,
V... newValues)
Add multiple values to the current list of values for the supplied key.
|
static <K,V> void |
addAll(MultivaluedMap<K,V> src,
MultivaluedMap<K,V> dest) |
void |
addFirst(K key,
V value)
Add a value to the first position in the current list of values for the
supplied key.
|
void |
clear() |
MultivaluedTreeMap<K,V> |
clone() |
static <K,V> MultivaluedTreeMap<K,V> |
clone(MultivaluedMap<K,V> src) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static <K,V> void |
copy(MultivaluedMap<K,V> src,
MultivaluedMap<K,V> dest) |
Set<Map.Entry<K,List<V>>> |
entrySet() |
boolean |
equals(Object o) |
boolean |
equalsIgnoreValueOrder(MultivaluedMap<K,V> omap)
Compare the specified map with this map for equality modulo the order
of values for each key.
|
List<V> |
get(Object key) |
V |
getFirst(K key)
A shortcut to get the first value of the supplied key.
|
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
List<V> |
put(K key,
List<V> value) |
void |
putAll(Map<? extends K,? extends List<V>> t) |
void |
putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value.
|
List<V> |
remove(Object key) |
int |
size() |
String |
toString() |
static String |
toString(MultivaluedMap<?,?> map,
String delimiter) |
Collection<List<V>> |
values() |
finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MultivaluedTreeMap()
public MultivaluedTreeMap(Comparator<K> keyComparator)
keyComparator - public void add(K key, V value)
MultivaluedMapadd in interface MultivaluedMap<K,V>key - the keyvalue - the value to be added.public V getFirst(K key)
MultivaluedMapgetFirst in interface MultivaluedMap<K,V>key - the keypublic void putSingle(K key, V value)
MultivaluedMapputSingle in interface MultivaluedMap<K,V>key - the keyvalue - the single value of the keypublic MultivaluedTreeMap<K,V> clone()
public static <K,V> MultivaluedTreeMap<K,V> clone(MultivaluedMap<K,V> src)
public static <K,V> void copy(MultivaluedMap<K,V> src, MultivaluedMap<K,V> dest)
public static <K,V> void addAll(MultivaluedMap<K,V> src, MultivaluedMap<K,V> dest)
public static String toString(MultivaluedMap<?,?> map, String delimiter)
public boolean containsKey(Object key)
containsKey in interface Map<K,List<V>>public boolean containsValue(Object value)
containsValue in interface Map<K,List<V>>public boolean equals(Object o)
public int hashCode()
public void addAll(K key, V... newValues)
MultivaluedMapNullPointerException if the supplied array of values
is null.addAll in interface MultivaluedMap<K,V>key - the key.newValues - the values to be added.public void addAll(K key, List<V> valueList)
MultivaluedMapNullPointerException if the
supplied array of values is null.addAll in interface MultivaluedMap<K,V>key - the key.valueList - the list of values to be added.public void addFirst(K key, V value)
MultivaluedMapaddFirst in interface MultivaluedMap<K,V>key - the keyvalue - the value to be added.public boolean equalsIgnoreValueOrder(MultivaluedMap<K,V> omap)
MultivaluedMapequalsIgnoreValueOrder in interface MultivaluedMap<K,V>omap - map to be compared to this one.Copyright © 2017 JBoss by Red Hat. All rights reserved.