Class StorageMap

java.lang.Object
java.util.AbstractMap<String,String>
com.google.gwt.storage.client.StorageMap
All Implemented Interfaces:
Map<String,String>

public class StorageMap extends AbstractMap<String,String>
Exposes the local/session Storage as a standard Map<String, String>.

Experimental API: This API is still under development and is subject to change.

The following characteristics are associated with this Map:

  1. Mutable - All 'write' methods (put(String, String), AbstractMap.putAll(Map), remove(Object), clear(), Map.Entry.setValue(Object)) operate as intended;
  2. remove() on Iterators - All remove() operations on available Iterators (from AbstractMap.keySet(), entrySet() and AbstractMap.values()) operate as intended;
  3. No null values and keys - The Storage doesn't accept keys or values which are null;
  4. String values and keys - All keys and values in this Map are String types.