Skip to content

Commit cf1744a

Browse files
author
Zoran Pavlovic
committed
Styling readme
1 parent 28e5cc3 commit cf1744a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,32 @@ public class UniversalPreferencesApplication extends Application {
1818
Now you can use UniversalPreferences library in any class of your project.
1919

2020
UniversalPreferences library is "universal" at accepting object types, so there is only one method to store and only one method to retrive values.
21+
22+
###### Store and retrive String
2123
```Java
22-
// Store and retrive String
2324
UniversalPreferences.getInstance().put("string", "some value");
2425
String string = UniversalPreferences.getInstance().get("string");
2526
```
27+
###### Store and retrive Integer
2628
```Java
27-
// Store and retrive Integer
2829
UniversalPreferences.getInstance().put("int", 30);
2930
int value = UniversalPreferences.getInstance().get("int");
3031
```
32+
33+
###### Store and retrive Float
3134
```Java
32-
// Store and retrive Float
3335
UniversalPreferences.getInstance().put("float", 3.0f);
3436
float valueFloat = UniversalPreferences.getInstance().get("float");
3537
```
38+
39+
###### Store and retrive Boolean
3640
```Java
37-
// Store and retrive Boolean
3841
UniversalPreferences.getInstance().put("bool", true);
3942
boolean bool = UniversalPreferences.getInstance().get("bool");
4043
```
44+
45+
###### Store and retrive Set<String>
4146
```Java
42-
// Store and retrive Set<String>
4347
Set<String> set = new HashSet<String>();
4448
set.add("test 1");
4549
set.add("test 2");

0 commit comments

Comments
 (0)