(bind-preference-to-atom key atom)
Bind atom to preference by syncing it with (java.util.prefs.Preferences/userRoot) for the current namespace and a given KEY. If no preference has been set yet the atom will stay untouched, otherwise it will be set to the stored preference value. Note that any value of the atom and the preference key must be printable per PRINT-DUP and readable per READ-STRING for it to be used with the preferences store.
Bind atom to preference by syncing it with (java.util.prefs.Preferences/userRoot) for the current namespace and a given KEY. If no preference has been set yet the atom will stay untouched, otherwise it will be set to the stored preference value. Note that any value of the atom and the preference key must be printable per PRINT-DUP and readable per READ-STRING for it to be used with the preferences store.
(bind-preference-to-atom* ns key atom)
Bind atom to preference by syncing it with (java.util.prefs.Preferences/userRoot) for the specified namespace and a given KEY. If no preference has been set yet the atom will stay untouched, otherwise it will be set to the stored preference value. Note that any value of the atom and the preference key must be printable per PRINT-DUP and readable per READ-STRING for it to be used with the preferences store.
Bind atom to preference by syncing it with (java.util.prefs.Preferences/userRoot) for the specified namespace and a given KEY. If no preference has been set yet the atom will stay untouched, otherwise it will be set to the stored preference value. Note that any value of the atom and the preference key must be printable per PRINT-DUP and readable per READ-STRING for it to be used with the preferences store.
(preference-atom key)
(preference-atom key initial-value)
Create and return an atom which has been bound using bind-preference-to-atom for the current namespace.
Create and return an atom which has been bound using bind-preference-to-atom for the current namespace.
(preferences-node)
(preferences-node ns)
Return the java.util.prefs.Preferences/userRoot for the current or the specified namespace.
Return the java.util.prefs.Preferences/userRoot for the current or the specified namespace.
(preferences-node* ns)
Return the java.util.prefs.Preferences/userRoot for the specified namespace.
Return the java.util.prefs.Preferences/userRoot for the specified namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close