Class MultivaluedMapImpl<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,java.util.List<V>>
-
- org.restlet.ext.jaxrs.internal.core.MultivaluedMapImpl<K,V>
-
- Type Parameters:
K-V-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<K,java.util.List<V>>,javax.ws.rs.core.MultivaluedMap<K,V>
@Deprecated public class MultivaluedMapImpl<K,V> extends java.util.HashMap<K,java.util.List<V>> implements javax.ws.rs.core.MultivaluedMap<K,V>Deprecated.Will be removed in next minor release.Implementation of the JAX-RS interfaceMultivaluedMap.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDDeprecated.
-
Constructor Summary
Constructors Constructor Description MultivaluedMapImpl()Deprecated.Creates a new emptyMultivaluedMapImplMultivaluedMapImpl(javax.ws.rs.core.MultivaluedMap<K,V> old)Deprecated.Creates a copy of the givenMultivaluedMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(K key, V value)Deprecated.Add a value to the current list of values for the supplied key.MultivaluedMapImpl<K,V>clone()Deprecated.Creates a clone of this map.VgetFirst(K key)Deprecated.A shortcut to get the first value of the supplied key.VgetLast(K key)Deprecated.A shortcut to get the last value of the supplied key.voidputSingle(K key, V value)Deprecated.Set the key's value to be a one item list consisting of the supplied value.-
Methods inherited from class java.util.HashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultivaluedMapImpl
public MultivaluedMapImpl()
Deprecated.Creates a new emptyMultivaluedMapImpl
-
-
Method Detail
-
add
public void add(K key, V value)
Deprecated.Add a value to the current list of values for the supplied key.
-
clone
public MultivaluedMapImpl<K,V> clone()
Deprecated.Creates a clone of this map. The contained values are not cloned.
-
getFirst
public V getFirst(K key)
Deprecated.A shortcut to get the first value of the supplied key.
-
getLast
public V getLast(K key)
Deprecated.A shortcut to get the last value of the supplied key.- Parameters:
key- the key- Returns:
- the last value for the specified key or null if the key is not in the map.
-
-