org.scijava.util
Class Prefs

java.lang.Object
  extended by org.scijava.util.Prefs

Deprecated. See PrefService

@Deprecated
public final class Prefs
extends Object

Simple utility class that stores and retrieves user preferences.

Some of this code was adapted from the PrefsUtil class by Robin Sharp of Javelin Software..

Author:
Curtis Rueden, Barry DeZonia, Grant Harris

Method Summary
static void clear(Class<?> c)
          Deprecated.  
static void clear(Preferences preferences, String key)
          Deprecated.  
static void clear(String key)
          Deprecated. Clears the node.
static void clearAll()
          Deprecated. Clears everything.
static String get(Class<?> c, String name)
          Deprecated.  
static String get(Class<?> c, String name, String defaultValue)
          Deprecated.  
static String get(String name)
          Deprecated.  
static String get(String name, String defaultValue)
          Deprecated.  
static boolean getBoolean(Class<?> c, String name, boolean defaultValue)
          Deprecated.  
static boolean getBoolean(String name, boolean defaultValue)
          Deprecated.  
static double getDouble(Class<?> c, String name, double defaultValue)
          Deprecated.  
static double getDouble(String name, double defaultValue)
          Deprecated.  
static float getFloat(Class<?> c, String name, float defaultValue)
          Deprecated.  
static float getFloat(String name, float defaultValue)
          Deprecated.  
static int getInt(Class<?> c, String name, int defaultValue)
          Deprecated.  
static int getInt(String name, int defaultValue)
          Deprecated.  
static List<String> getList(Preferences preferences)
          Deprecated. Gets a List from the preferences.
static List<String> getList(Preferences preferences, String key)
          Deprecated.  
static List<String> getList(String key)
          Deprecated. Gets a List from the preferences.
static long getLong(Class<?> c, String name, long defaultValue)
          Deprecated.  
static long getLong(String name, long defaultValue)
          Deprecated.  
static Map<String,String> getMap(Preferences preferences)
          Deprecated. Gets a Map from the preferences.
static Map<String,String> getMap(Preferences preferences, String key)
          Deprecated.  
static Map<String,String> getMap(String key)
          Deprecated. Gets a Map from the preferences.
static void put(Class<?> c, String name, boolean value)
          Deprecated.  
static void put(Class<?> c, String name, double value)
          Deprecated.  
static void put(Class<?> c, String name, float value)
          Deprecated.  
static void put(Class<?> c, String name, int value)
          Deprecated.  
static void put(Class<?> c, String name, long value)
          Deprecated.  
static void put(Class<?> c, String name, String value)
          Deprecated.  
static void put(String name, boolean value)
          Deprecated.  
static void put(String name, double value)
          Deprecated.  
static void put(String name, float value)
          Deprecated.  
static void put(String name, int value)
          Deprecated.  
static void put(String name, long value)
          Deprecated.  
static void put(String name, String value)
          Deprecated.  
static void putList(List<String> list, String key)
          Deprecated. Puts a list into the preferences.
static void putList(Preferences preferences, List<String> list)
          Deprecated. Puts a list into the preferences.
static void putList(Preferences preferences, List<String> list, String key)
          Deprecated.  
static void putMap(Map<String,String> map, String key)
          Deprecated. Puts a map into the preferences.
static void putMap(Preferences preferences, Map<String,String> map)
          Deprecated. Puts a map into the preferences.
static void putMap(Preferences preferences, Map<String,String> map, String key)
          Deprecated.  
static void remove(Preferences preferences, String key)
          Deprecated. Removes the node.
static void setDelegateService(PrefService prefService, double priority)
          Deprecated. Sets the PrefService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static String get(String name)
Deprecated. 

get

public static String get(String name,
                         String defaultValue)
Deprecated. 

getBoolean

public static boolean getBoolean(String name,
                                 boolean defaultValue)
Deprecated. 

getDouble

public static double getDouble(String name,
                               double defaultValue)
Deprecated. 

getFloat

public static float getFloat(String name,
                             float defaultValue)
Deprecated. 

getInt

public static int getInt(String name,
                         int defaultValue)
Deprecated. 

getLong

public static long getLong(String name,
                           long defaultValue)
Deprecated. 

put

public static void put(String name,
                       String value)
Deprecated. 

put

public static void put(String name,
                       boolean value)
Deprecated. 

put

public static void put(String name,
                       double value)
Deprecated. 

put

public static void put(String name,
                       float value)
Deprecated. 

put

public static void put(String name,
                       int value)
Deprecated. 

put

public static void put(String name,
                       long value)
Deprecated. 

get

public static String get(Class<?> c,
                         String name)
Deprecated. 

get

public static String get(Class<?> c,
                         String name,
                         String defaultValue)
Deprecated. 

getBoolean

public static boolean getBoolean(Class<?> c,
                                 String name,
                                 boolean defaultValue)
Deprecated. 

getDouble

public static double getDouble(Class<?> c,
                               String name,
                               double defaultValue)
Deprecated. 

getFloat

public static float getFloat(Class<?> c,
                             String name,
                             float defaultValue)
Deprecated. 

getInt

public static int getInt(Class<?> c,
                         String name,
                         int defaultValue)
Deprecated. 

getLong

public static long getLong(Class<?> c,
                           String name,
                           long defaultValue)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       String value)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       boolean value)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       double value)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       float value)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       int value)
Deprecated. 

put

public static void put(Class<?> c,
                       String name,
                       long value)
Deprecated. 

clear

public static void clear(Class<?> c)
Deprecated. 

clearAll

public static void clearAll()
Deprecated. 
Clears everything.


clear

public static void clear(String key)
Deprecated. 
Clears the node.


clear

public static void clear(Preferences preferences,
                         String key)
Deprecated. 

remove

public static void remove(Preferences preferences,
                          String key)
Deprecated. 
Removes the node.


putMap

public static void putMap(Map<String,String> map,
                          String key)
Deprecated. 
Puts a map into the preferences.


putMap

public static void putMap(Preferences preferences,
                          Map<String,String> map,
                          String key)
Deprecated. 

putMap

public static void putMap(Preferences preferences,
                          Map<String,String> map)
Deprecated. 
Puts a map into the preferences.


getMap

public static Map<String,String> getMap(String key)
Deprecated. 
Gets a Map from the preferences.


getMap

public static Map<String,String> getMap(Preferences preferences,
                                        String key)
Deprecated. 

getMap

public static Map<String,String> getMap(Preferences preferences)
Deprecated. 
Gets a Map from the preferences.


putList

public static void putList(List<String> list,
                           String key)
Deprecated. 
Puts a list into the preferences.


putList

public static void putList(Preferences preferences,
                           List<String> list,
                           String key)
Deprecated. 

putList

public static void putList(Preferences preferences,
                           List<String> list)
Deprecated. 
Puts a list into the preferences.


getList

public static List<String> getList(String key)
Deprecated. 
Gets a List from the preferences.


getList

public static List<String> getList(Preferences preferences,
                                   String key)
Deprecated. 

getList

public static List<String> getList(Preferences preferences)
Deprecated. 
Gets a List from the preferences. Returns an empty list if nothing in prefs.


setDelegateService

public static void setDelegateService(PrefService prefService,
                                      double priority)
Deprecated. 
Sets the PrefService



Copyright © 2009–2015 SciJava. All rights reserved.