PrefService
@Deprecated public final class Prefs extends Object
Some of this code was adapted from the PrefsUtil class by Robin Sharp of Javelin Software..
Modifier and Type | Method and Description |
---|---|
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 |
public static boolean getBoolean(String name, boolean defaultValue)
public static double getDouble(String name, double defaultValue)
public static float getFloat(String name, float defaultValue)
public static int getInt(String name, int defaultValue)
public static long getLong(String name, long defaultValue)
public static void put(String name, boolean value)
public static void put(String name, double value)
public static void put(String name, float value)
public static void put(String name, int value)
public static void put(String name, long value)
public static boolean getBoolean(Class<?> c, String name, boolean defaultValue)
public static void clear(Class<?> c)
public static void clearAll()
public static void clear(String key)
public static void clear(Preferences preferences, String key)
public static void remove(Preferences preferences, String key)
public static void putMap(Map<String,String> map, String key)
public static void putMap(Preferences preferences, Map<String,String> map, String key)
public static void putMap(Preferences preferences, Map<String,String> map)
public static Map<String,String> getMap(String key)
public static Map<String,String> getMap(Preferences preferences, String key)
public static Map<String,String> getMap(Preferences preferences)
public static void putList(List<String> list, String key)
public static void putList(Preferences preferences, List<String> list, String key)
public static void putList(Preferences preferences, List<String> list)
public static List<String> getList(String key)
public static List<String> getList(Preferences preferences, String key)
public static List<String> getList(Preferences preferences)
public static void setDelegateService(PrefService prefService, double priority)
PrefService
Copyright © 2015–2022 SciJava. All rights reserved.