The Java(TM) API for RESTful Web Services (JAX-RS) 1.1 1.0.1.Final
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
-
- All Superinterfaces:
- Map<K,List<V>>
public interface MultivaluedMap<K,V>
extends Map<K,List<V>>
A map of key-values pairs. Each key can have zero or more values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
-
Method Summary
Methods
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.
|
V |
getFirst(K key)
A shortcut to get the first value of the supplied key.
|
void |
putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value.
|
-
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
-
-
Method Detail
-
putSingle
void putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value.
Any existing values will be replaced.
- Parameters:
key
- the keyvalue
- the single value of the key
The Java(TM) API for RESTful Web Services (JAX-RS) 1.1 1.0.1.Final
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.