Java Preference Get getPreferences()

Here you can find the source of getPreferences()

Description

Provides direct access to the preferences node where VCHILL configuration information is stored.

License

Open Source License

Declaration

public static Preferences getPreferences() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.prefs.Preferences;

public class Main {
    /**//w w w.j ava  2 s  .  com
     * The preferences node to load/save from/to
     */
    private static final Preferences prefs = Preferences.userRoot().node("/edu/colostate/vchill");

    /**
     * Provides direct access to the preferences node where VCHILL configuration information is stored.
     * This can be used when other operations than this class provides are needed.
     */
    public static Preferences getPreferences() {
        return prefs;
    }
}

Related

  1. getFloat(String key, Float def)
  2. getInt(final Class preferencesClass, final String preferenceName)
  3. getList(String path)
  4. getNode(String path)
  5. getPreference(String key, Boolean defaultValue)
  6. getPreferences(final Class preferencesClass)
  7. getPrefs(Class cls)
  8. getPrefsStrings(Preferences prefs, String key)
  9. getStringArray(final String key, final String[] defaultValue)