| java.lang.Object | |
| ↳ | com.google.android.gms.wearable.DataMap | 
A map of data supported by PutDataMapRequest and DataMapItems.
 DataMap may convert to and from Bundles, but will drop any types
 not explicitly supported by DataMap in the conversion process.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | TAG | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
          Returns an ArrayList of DataMaps from an ArrayList of Bundles.
          
    
         
  
   | |||||||||||
          Removes all elements from the mapping of this DataMap.
          
    
         
  
   | |||||||||||
          Returns true if the given key is contained in the mapping
 of this DataMap.
          
    
         
  
   | |||||||||||
          Returns true if the given Object is a DataMap equivalent to
 this one.
          
    
         
  
   | |||||||||||
          Returns a DataMap from a Bundle.
          
    
         
  
   | |||||||||||
          Returns a DataMap from a byte[].
          
    
         
  
   | |||||||||||
          Returns the entry with the given key as an object.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or false if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or (byte) 0 if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or 0.0 if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or 0.0f if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or 0 if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or 0L if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or defaultValue if
 no mapping of the desired type exists for the given key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns the value associated with the given key, or null if
 no mapping of the desired type exists for the given key or a null
 value is explicitly associated with the key.
          
    
         
  
   | |||||||||||
          Returns true if the mapping of this DataMap is empty, false otherwise.
          
    
         
  
   | |||||||||||
          Returns a Set containing the Strings used as keys in this DataMap.
          
    
         
  
   | |||||||||||
          Inserts all mappings from the given DataMap into this DataMap.
          
    
         
  
   | |||||||||||
          Inserts an Asset into the mapping of this DataMap, replacing
 any existing Asset for the given key.
          
    
         
  
   | |||||||||||
          Inserts a Boolean value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a byte value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a byte array value into the mapping of this dataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a DataMap into the mapping of this DataMap, replacing
 any existing DataMap for the given key.
          
    
         
  
   | |||||||||||
          Inserts an ArrayList 
  
   | |||||||||||
          Inserts a double value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a float value into the mapping of this dataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a float array value into the mapping of this dataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts an int value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts an ArrayList 
  
   | |||||||||||
          Inserts a long value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a long array value into the mapping of this dataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a String value into the mapping of this DataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts a String array value into the mapping of this dataMap, replacing
 any existing value for the given key.
          
    
         
  
   | |||||||||||
          Inserts an ArrayList 
  
   | |||||||||||
          Removes any entry with the given key from the mapping of this dataMap.
          
    
         
  
   | |||||||||||
          Returns the number of key-value pairs in this map.
          
    
         
  
   | |||||||||||
          Returns a Bundle containing all the elements on this DataMap.
          
    
         
  
   | |||||||||||
          Returns a serialized  
  
  byte[] representing this DataMap.
          
    
         | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||||||||||||||||||||||||
Returns an ArrayList of DataMaps from an ArrayList of Bundles. Any elements in the Bundles not supported by DataMap will be dropped.
Removes all elements from the mapping of this DataMap.
Returns true if the given key is contained in the mapping of this DataMap.
| key | a String key | 
|---|
Returns true if the given Object is a DataMap equivalent to this one.
Returns a DataMap from a Bundle. The input Bundle is expected to contain only elements supported by DataMap. Any elements in the Bundle not supported by DataMap will be dropped.
Returns a DataMap from a byte[].
| bytes | the bytes of the DataMap to convert | 
|---|
Returns the entry with the given key as an object.
| key | a String key | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or (byte) 0 if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or 0.0f if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.
| key | a String | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
| key | a String, or null | 
|---|---|
| defaultValue | Value to return if key does not exist | 
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
| key | a String, or null | 
|---|
Returns true if the mapping of this DataMap is empty, false otherwise.
Returns a Set containing the Strings used as keys in this DataMap.
Inserts all mappings from the given DataMap into this DataMap.
| dataMap | a DataMap | 
|---|
Inserts an Asset into the mapping of this DataMap, replacing any existing Asset for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | an Asset, or null | 
Inserts a Boolean value into the mapping of this DataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a Boolean, or null | 
Inserts a byte value into the mapping of this DataMap, replacing any existing value for the given key.
| key | a String, or null | 
|---|---|
| value | a byte | 
Inserts a byte array value into the mapping of this dataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a byte array object, or null | 
Inserts a DataMap into the mapping of this DataMap, replacing any existing DataMap for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | an Asset, or null | 
Inserts an ArrayList
| key | a String, or null | 
|---|---|
| value | an ArrayList | 
        
Inserts a double value into the mapping of this DataMap, replacing any existing value for the given key.
| key | a String, or null | 
|---|---|
| value | a double | 
Inserts a float value into the mapping of this dataMap, replacing any existing value for the given key.
| key | a String, or null | 
|---|---|
| value | a float | 
Inserts a float array value into the mapping of this dataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a float array object, or null | 
Inserts an int value into the mapping of this DataMap, replacing any existing value for the given key.
| key | a String, or null | 
|---|---|
| value | an int, or null | 
Inserts an ArrayList
| key | a String, or null | 
|---|---|
| value | an ArrayList | 
        
Inserts a long value into the mapping of this DataMap, replacing any existing value for the given key.
| key | a String, or null | 
|---|---|
| value | a long | 
Inserts a long array value into the mapping of this dataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a long array object, or null | 
Inserts a String value into the mapping of this DataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a String, or null | 
Inserts a String array value into the mapping of this dataMap, replacing any existing value for the given key. Either key or value may be null.
| key | a String, or null | 
|---|---|
| value | a String array object, or null | 
Inserts an ArrayList
| key | a String, or null | 
|---|---|
| value | an ArrayList | 
        
Removes any entry with the given key from the mapping of this dataMap.
| key | a String key | 
|---|
Returns the number of key-value pairs in this map.
Returns a Bundle containing all the elements on this DataMap. A data map converted in this
 way should only be read after converting it with fromBundle(Bundle).
Returns a serialized byte[] representing this DataMap.