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

Method set

CodenameOne/src/com/codename1/io/Preferences.java:109–118  ·  view source on GitHub ↗
(String pref, Object o)

Source from the content-addressed store, hash-verified

107 ///
108 /// - `o`: a String a number or boolean
109 private static void set(String pref, Object o) {
110 Object prior = get(pref, null);
111 if (o == null) {
112 get().remove(pref);
113 } else {
114 get().put(pref, o);
115 }
116 save();
117 fireChange(pref, prior, o);
118 }
119
120 /// Sets a set of preference values as a batch, and performs a single save.
121 ///

Callers 15

setEnabledMethod · 0.95
propertyChangedMethod · 0.95
persistMethod · 0.95
validateTokenMethod · 0.95
loginSuccessfulMethod · 0.95
persistProfileMethod · 0.95
setAppUserIdMethod · 0.95
getAppUserIdMethod · 0.95
registerSessionMethod · 0.95
requestReviewMethod · 0.95
markCompletedMethod · 0.95
getAndSetMethod · 0.95

Calls 13

getMethod · 0.95
saveMethod · 0.95
fireChangeMethod · 0.95
addMethod · 0.95
valueOfMethod · 0.95
valueOfMethod · 0.95
valueOfMethod · 0.95
valueOfMethod · 0.95
removeMethod · 0.65
putMethod · 0.65
entrySetMethod · 0.65
getKeyMethod · 0.65