Class GenericData

java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
All Implemented Interfaces:
Cloneable, Map<String,Object>
Direct Known Subclasses:
GenericJson, GenericUrl, GenericXml, HttpHeaders, JsonRpcRequest

public class GenericData extends AbstractMap<String,Object> implements Cloneable
Generic data that stores all unknown data key name/value pairs.

Subclasses can declare fields for known data keys using the Key annotation. Each field can be of any visibility (private, package private, protected, or public) and must not be static. null unknown data key names are not allowed, but null data values are allowed.

Iteration order of the data keys is based on the sorted (ascending) key names of the declared fields, followed by the iteration order of all of the unknown data key name/value pairs.

Implementation is not thread-safe. For a thread-safe choice instead use an implementation of ConcurrentMap.

Since:
1.0