CARVIEW |
Select Language
HTTP/1.1 200 OK
Server: AkamaiNetStorage
Content-Type: text/html
ETag: "c40c0eafe8a24fcd704e2692a30a0ba4:1411332077"
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=21599
Date: Tue, 14 Oct 2025 00:34:33 GMT
Content-Length: 2861
Connection: keep-alive
MultivaluedMap (Java EE 6 )
javax.ws.rs.core
Submit a bug or feature
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.ws.rs.core
Interface MultivaluedMap<K,V>
- All Superinterfaces:
- java.util.Map<K,java.util.List<V>>
public interface MultivaluedMap<K,V>
- extends java.util.Map<K,java.util.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 |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
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
add
void add(K key, V value)
- Add a value to the current list of values for the supplied key.
- Parameters:
key
- the keyvalue
- the value to be added.
getFirst
V getFirst(K key)
- A shortcut to get the first value of the supplied key.
- Parameters:
key
- the key- Returns:
- the first value for the specified key or null if the key is not in the map.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41