public class Prefs
extends java.lang.Object
Constructor and Description |
---|
Prefs() |
Modifier and Type | Method and Description |
---|---|
static void |
flush(java.lang.String key) |
static java.lang.String |
get(java.lang.String key,
java.lang.String def) |
static boolean |
getBoolean(java.lang.String key,
boolean def) |
static byte[] |
getByteArray(java.lang.String key,
byte[] def) |
static double |
getDouble(java.lang.String key,
double def) |
static float |
getFloat(java.lang.String key,
float def) |
static int |
getInt(java.lang.String key,
int def) |
static long |
getLong(java.lang.String key,
long def) |
static void |
put(java.lang.String key,
java.lang.String value) |
static void |
putBoolean(java.lang.String key,
boolean value) |
static void |
putByteArray(java.lang.String key,
byte[] value) |
static void |
putDouble(java.lang.String key,
double value) |
static void |
putFloat(java.lang.String key,
float value) |
static void |
putInt(java.lang.String key,
int value) |
static void |
putLong(java.lang.String key,
long value) |
static void |
remove(java.lang.String key) |
public static void put(java.lang.String key, java.lang.String value)
public static java.lang.String get(java.lang.String key, java.lang.String def)
public static void putInt(java.lang.String key, int value)
public static int getInt(java.lang.String key, int def)
public static void putLong(java.lang.String key, long value)
public static long getLong(java.lang.String key, long def)
public static void putBoolean(java.lang.String key, boolean value)
public static boolean getBoolean(java.lang.String key, boolean def)
public static void putFloat(java.lang.String key, float value)
public static float getFloat(java.lang.String key, float def)
public static void putDouble(java.lang.String key, double value)
public static double getDouble(java.lang.String key, double def)
public static void putByteArray(java.lang.String key, byte[] value)
public static byte[] getByteArray(java.lang.String key, byte[] def)
public static void remove(java.lang.String key)
public static void flush(java.lang.String key) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException