Permalink
Browse files

doc

  • Loading branch information...
1 parent d49dc2a commit 60ba103279a05e400e9ffa2276ed46ca0d4c9f92 @jindw committed Apr 7, 2014
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.md
View
@@ -50,8 +50,9 @@ Description
Replace the SharePreferences interface. the keyValueStroage is a dsl for typed key value stroage.
- * defined kevaluestorage
+
```java
+ // defined kevaluestorage
public interface GlobalSetting extends KeyValueStorage<GlobalsConfig>{
/**
* 设置名为age,类型为int属性,默认值为0
@@ -76,10 +77,10 @@ Description
public GlobalSetting setCacheEnable(boolean b);
}
.......
-```
+
- * use the key value storage
-```java
+ // use the key value storage
+
//return the same instance anywhere!!
GlobalSetting globalSetting = UIO.getKeyValueStorage(GlobalSetting.class);
int age = globalSetting.getAge()

0 comments on commit 60ba103

Please sign in to comment.