/** * Returns the root preference node. * * @return the root preference node. */ public static Preferences root() { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesRoot(); }
/** * Returns user preference node . {@link Preferences#absolutePath} of such * a node depends whether class provided as a parameter was loaded as a part of any module * or not. If so, then absolute path corresponds to slashified code name base of module. * If not, then absolute path corresponds to class's package. * * @param cls the class for which a user preference node is desired. * @return the user preference node */ public static Preferences forModule(Class cls) { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesForModule(cls); }
/** * Returns the root preference node. * * @return the root preference node. */ public static Preferences root() { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesRoot(); }
/** * Returns the root preference node. * * @return the root preference node. */ public static Preferences root() { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesRoot(); }
/** * Returns user preference node . {@link Preferences#absolutePath} of such * a node depends whether class provided as a parameter was loaded as a part of any module * or not. If so, then absolute path corresponds to slashified code name base of module. * If not, then absolute path corresponds to class's package. * * @param cls the class for which a user preference node is desired. * @return the user preference node */ public static Preferences forModule(Class cls) { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesForModule(cls); }
/** * Returns user preference node . {@link Preferences#absolutePath} of such * a node depends whether class provided as a parameter was loaded as a part of any module * or not. If so, then absolute path corresponds to slashified code name base of module. * If not, then absolute path corresponds to class's package. * * @param cls the class for which a user preference node is desired. * @return the user preference node */ public static Preferences forModule(Class cls) { if (PREFS_IMPL == null) { PREFS_IMPL = getPreferencesProvider(); } return PREFS_IMPL.preferencesForModule(cls); }