Subversion Repository Public Repository

litesoft

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
package org.litesoft.GWT.client.localstorage;

import org.litesoft.commonfoundation.annotations.*;

import java.util.*;

/**
 * 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

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

939 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 21:30:31 +0000

Extracting commonfoundation

765 Diff Diff GeorgeS picture GeorgeS Sat 14 Jul, 2012 15:06:46 +0000

!

764 Diff Diff GeorgeS picture GeorgeS Thu 12 Jul, 2012 14:22:25 +0000
758 Diff Diff GeorgeS picture GeorgeS Wed 11 Jul, 2012 03:57:35 +0000

!

757 GeorgeS picture GeorgeS Mon 09 Jul, 2012 05:32:56 +0000