litesoft
@ 939
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
package org.litesoft.GWT.client.localstorage; import java.util.*; import org.litesoft.commonfoundation.annotations.*; /** * Local Storage is a Proxy/Adapter to the underlying HTML5 LocalStorage. * <p/> * The exposed API is that of a String to String Map with three important differences: * <li>null keys are NOT supported</li> * <li>null values for values on a <code>put</code> are treated as a call to <code>remove</code></li> * <li>keys are trimmed of their leading and trailing whitespace and if the resulting key is empty it is treated as a null</li> */ public interface LocalStorage extends Map<String, String> { /** * The same behavior as the regular Map.get, but with an explicit key type of String. * <p/> * Note: The regular Map.get <code>key</code> parameter will also be enforced to be a String and not be null! * * @param pKey the key whose associated value is to be returned * * @return the value to which the specified key is mapped, or * {@code null} if this map contains no mapping for the key */ String get( @NotNull String pKey ); } |
Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/localstorage/LocalStorage.java
Revision | Author | Commited | Message |
---|---|---|---|
939 Diff | GeorgeS | Mon 02 Jun, 2014 21:30:31 +0000 | Extracting commonfoundation |
765 Diff | GeorgeS | Sat 14 Jul, 2012 15:06:46 +0000 | ! |
764 Diff | GeorgeS | Thu 12 Jul, 2012 14:22:25 +0000 | |
758 Diff | GeorgeS | Wed 11 Jul, 2012 03:57:35 +0000 | ! |
757 | GeorgeS | Mon 09 Jul, 2012 05:32:56 +0000 |