Subversion Repository Public Repository

litesoft

Diff Revisions 764 vs 765 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/localstorage/LocalStorageImpl.java

Diff revisions: vs.
  @@ -5,6 +5,14 @@
5 5 import org.litesoft.core.annotations.*;
6 6 import org.litesoft.core.util.*;
7 7
8 + /**
9 + * Local Storage is a Proxy/Adapter to the underlying HTML5 LocalStorage.
10 + * <p/>
11 + * The exposed API is that of a String to String Map with three important differences:
12 + * <li>null keys are NOT supported</li>
13 + * <li>null values for values on a <code>put</code> are treated as a call to <code>remove</code></li>
14 + * <li>keys are trimmed of their leading and trailing whitespace and if the resulting key is empty it is treated as a null</li>
15 + */
8 16 public class LocalStorageImpl extends AbstractMap<String, String> implements LocalStorage
9 17 {
10 18 private final Html5LocalStorage mHtml5LS;