MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / get

Method get

CodenameOne/src/com/codename1/io/Preferences.java:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 private synchronized static Hashtable<String, Object> get() {
87 if (p == null) {
88 if (Storage.getInstance().exists(preferencesLocation)) {
89 p = (Hashtable<String, Object>) Storage.getInstance().readObject(preferencesLocation, false);
90 }
91 if (p == null) {
92 p = new Hashtable<String, Object>();
93 }
94 }
95 return p;
96 }
97
98 private static synchronized void save() {
99 Storage.getInstance().writeObject(preferencesLocation, p, false);

Callers 15

isEnabledMethod · 0.95
getUidMethod · 0.95
getIdTokenMethod · 0.95
isSignedInMethod · 0.95
refreshMethod · 0.95
validateTokenMethod · 0.95
nativeIsLoggedInMethod · 0.95
parsePackedResultMethod · 0.95
CommerceManagerMethod · 0.95
getDeviceKeyMethod · 0.95
getPushKeyMethod · 0.95
registerSessionMethod · 0.95

Calls 10

getInstanceMethod · 0.95
toStringMethod · 0.95
intValueMethod · 0.95
longValueMethod · 0.95
doubleValueMethod · 0.95
floatValueMethod · 0.95
booleanValueMethod · 0.95
existsMethod · 0.65
getMethod · 0.65
readObjectMethod · 0.45