Multimap
interface to represent name-value pairs. If order of insertion or support
of duplicate name-value pairs is required, use LinkedListMultimap
. For the particular task of
parsing and storing URI parameters, consider UriParameterMap
, which is also the type returned
by com.google.gdata.util.common.net.UriBuilder
instances for URI query
parameters. If you got here because you use FormUrlDecoder
or
CgiParams
, then see the deprecation comments in those classes.@Deprecated
public final class ParamMap
extends java.lang.Object
Constructor and Description |
---|
ParamMap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String name,
java.lang.String value)
Deprecated.
use
Multimap.put(name, value) |
boolean |
containsKey(java.lang.String name)
Deprecated.
Currently used only by unit tests.
|
java.lang.String[] |
get(java.lang.String name)
Deprecated.
Use
Multimap.get(name) and convert to an array only if
you absolutely have to. |
void |
put(java.lang.String name,
java.lang.String[] values)
Deprecated.
Use
Multimap.putAll(name, collection) , first converting
an array to a list with Arrays.asList(values) if the collection
is not already available. |
java.util.Map<java.lang.String,java.lang.String[]> |
toMap()
Deprecated.
Use
Multimap.asMap() to get a (String name) ->
(Collection values) mapping and convert to an array only if you
absolutely have to. Or, use the multimap directly. |
@Deprecated public java.lang.String[] get(java.lang.String name)
Multimap.get(name)
and convert to an array only if
you absolutely have to.public boolean containsKey(java.lang.String name)
@Deprecated public void append(java.lang.String name, java.lang.String value)
Multimap.put(name, value)
@Deprecated public void put(java.lang.String name, java.lang.String[] values)
Multimap.putAll(name, collection)
, first converting
an array to a list with Arrays.asList(values)
if the collection
is not already available.@Deprecated public java.util.Map<java.lang.String,java.lang.String[]> toMap()
Multimap.asMap()
to get a (String name) ->
(Collection values) mapping and convert to an array only if you
absolutely have to. Or, use the multimap directly.