@@ -18,28 +18,32 @@ public class UniversalPreferencesApplication extends Application {
1818Now you can use UniversalPreferences library in any class of your project.
1919
2020UniversalPreferences 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
2324UniversalPreferences . getInstance(). put(" string" , " some value" );
2425String string = UniversalPreferences . getInstance(). get(" string" );
2526```
27+ ###### Store and retrive Integer
2628``` Java
27- // Store and retrive Integer
2829UniversalPreferences . getInstance(). put(" int" , 30 );
2930int value = UniversalPreferences . getInstance(). get(" int" );
3031```
32+
33+ ###### Store and retrive Float
3134``` Java
32- // Store and retrive Float
3335UniversalPreferences . getInstance(). put(" float" , 3.0f );
3436float valueFloat = UniversalPreferences . getInstance(). get(" float" );
3537```
38+
39+ ###### Store and retrive Boolean
3640``` Java
37- // Store and retrive Boolean
3841UniversalPreferences . getInstance(). put(" bool" , true );
3942boolean bool = UniversalPreferences . getInstance(). get(" bool" );
4043```
44+
45+ ###### Store and retrive Set<String >
4146``` Java
42- // Store and retrive Set<String>
4347Set<String > set = new HashSet<String > ();
4448set. add(" test 1" );
4549set. add(" test 2" );
0 commit comments