Uses of Class
java.util.prefs.Preferences
Package
Description
This package allows applications to store and retrieve user and system
preference and configuration data.
Provides a mechanism to launch an instance of a Java shell tool.
-
Uses of Preferences in java.util.prefs
Modifier and TypeClassDescriptionclass
This class provides a skeletal implementation of thePreferences
class, greatly easing the task of implementing it.Modifier and TypeMethodDescriptionNodeChangeEvent.getChild()
Returns the node that was added or removed.PreferenceChangeEvent.getNode()
Returns the preference node that emitted the event.NodeChangeEvent.getParent()
Returns the parent of the node that was added or removed.Implements thenode
method as per the specification innode(String)
.abstract Preferences
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.AbstractPreferences.parent()
Implements theparent
method as per the specification inparent()
.abstract Preferences
Preferences.parent()
Returns the parent of this preference node, ornull
if this is the root.static Preferences
Preferences.systemNodeForPackage(Class<?> c)
Returns the preference node from the system preference tree that is associated (by convention) with the specified class's package.static Preferences
Preferences.systemRoot()
Returns the root preference node for the system.PreferencesFactory.systemRoot()
Returns the system root preference node.static Preferences
Preferences.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 Preferences
Preferences.userRoot()
Returns the root preference node for the calling user.PreferencesFactory.userRoot()
Returns the user root preference node corresponding to the calling user.ModifierConstructorDescriptionNodeChangeEvent(Preferences parent, Preferences child)
Constructs a newNodeChangeEvent
instance.PreferenceChangeEvent(Preferences node, String key, String newValue)
Constructs a newPreferenceChangeEvent
instance. -
Uses of Preferences in jdk.jshell.tool
Modifier and TypeMethodDescriptionJavaShellToolBuilder.persistence(Preferences prefs)
Set the storage mechanism for persistent information which includes input history and retained settings.