Uses of Class
java.util.prefs.Preferences
| Package | Description |
|---|---|
| java.util.prefs |
This package allows applications to store and retrieve user and system
preference and configuration data.
|
| jdk.jshell.tool |
Provides a mechanism to launch an instance of a Java™ shell tool.
|
-
Uses of Preferences in java.util.prefs
Subclasses of Preferences in java.util.prefs Modifier and Type Class Description classAbstractPreferencesThis class provides a skeletal implementation of thePreferencesclass, greatly easing the task of implementing it.Methods in java.util.prefs that return Preferences Modifier and Type Method Description PreferencesNodeChangeEvent. getChild()Returns the node that was added or removed.PreferencesPreferenceChangeEvent. getNode()Returns the preference node that emitted the event.PreferencesNodeChangeEvent. getParent()Returns the parent of the node that was added or removed.PreferencesAbstractPreferences. node(String path)Implements thenodemethod as per the specification innode(String).abstract PreferencesPreferences. node(String pathName)Returns the named preference node in the same tree as this node, creating it and any of its ancestors if they do not already exist.PreferencesAbstractPreferences. parent()Implements theparentmethod as per the specification inparent().abstract PreferencesPreferences. parent()Returns the parent of this preference node, ornullif this is the root.static PreferencesPreferences. systemNodeForPackage(Class<?> c)Returns the preference node from the system preference tree that is associated (by convention) with the specified class's package.static PreferencesPreferences. systemRoot()Returns the root preference node for the system.PreferencesPreferencesFactory. systemRoot()Returns the system root preference node.static PreferencesPreferences. userNodeForPackage(Class<?> c)Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class's package.static PreferencesPreferences. userRoot()Returns the root preference node for the calling user.PreferencesPreferencesFactory. userRoot()Returns the user root preference node corresponding to the calling user.Constructors in java.util.prefs with parameters of type Preferences Constructor Description NodeChangeEvent(Preferences parent, Preferences child)Constructs a newNodeChangeEventinstance.PreferenceChangeEvent(Preferences node, String key, String newValue)Constructs a newPreferenceChangeEventinstance. -
Uses of Preferences in jdk.jshell.tool
Methods in jdk.jshell.tool with parameters of type Preferences Modifier and Type Method Description JavaShellToolBuilderJavaShellToolBuilder. persistence(Preferences prefs)Set the storage mechanism for persistent information which includes input history and retained settings.