public final class

ParamMap

extends Object
java.lang.Object
   ↳ com.google.gdata.util.httputil.ParamMap

This class is deprecated.
Use the general com.google.common.collect.Multimap interface to represent name-value pairs. If order of insertion or support of duplicate name-value pairs is required, use com.google.common.collect.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.

Class Overview

Utility data structure for maintaining URL/CGI params.

Summary

Fields
private final Map<String, List<String>> map
Public Constructors
ParamMap()
Public Methods
void append(String name, String value)
This method is deprecated. use Multimap.put(name, value)
boolean containsKey(String name)
Currently used only by unit tests.
String[] get(String name)
This method is deprecated. Use Multimap.get(name) and convert to an array only if you absolutely have to.
void put(String name, String[] values)
This method is deprecated. Use Multimap.putAll(name, collection), first converting an array to a list with Arrays.asList(values) if the collection is not already available.
Map<String, String[]> toMap()
This method is 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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final Map<String, List<String>> map

Public Constructors

public ParamMap ()

Public Methods

public void append (String name, String value)

This method is deprecated.
use Multimap.put(name, value)

Add a new value for name

Parameters
name
value

public boolean containsKey (String name)

Currently used only by unit tests.

Parameters
name

public String[] get (String name)

This method is deprecated.
Use Multimap.get(name) and convert to an array only if you absolutely have to.

Get list of values associated with name

Parameters
name

public void put (String name, String[] values)

This method is deprecated.
Use Multimap.putAll(name, collection), first converting an array to a list with Arrays.asList(values) if the collection is not already available.

Set values for name

Parameters
name
values

public Map<String, String[]> toMap ()

This method is 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.

Returns a Map containing (String name) -> (String[] values) mappings. Runs in O(number of mappings).