public class SystemProperties
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PROP_NAME_MAX |
static int |
PROP_VALUE_MAX |
| Constructor and Description |
|---|
SystemProperties() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
get(java.lang.String key)
Get the value for the given key.
|
static java.lang.String |
get(java.lang.String key,
java.lang.String def)
Get the value for the given key.
|
static boolean |
getBoolean(java.lang.String key,
boolean def)
Get the value for the given key, returned as a boolean.
|
static int |
getInt(java.lang.String key,
int def)
Get the value for the given key, and return as an integer.
|
static long |
getLong(java.lang.String key,
long def)
Get the value for the given key, and return as a long.
|
public static final int PROP_NAME_MAX
public static final int PROP_VALUE_MAX
public static java.lang.String get(java.lang.String key)
java.lang.IllegalArgumentException - if the key exceeds 32 characterspublic static java.lang.String get(java.lang.String key,
java.lang.String def)
java.lang.IllegalArgumentException - if the key exceeds 32 characterspublic static int getInt(java.lang.String key,
int def)
key - the key to lookupdef - a default value to returnjava.lang.IllegalArgumentException - if the key exceeds 32 characterspublic static long getLong(java.lang.String key,
long def)
key - the key to lookupdef - a default value to returnjava.lang.IllegalArgumentException - if the key exceeds 32 characterspublic static boolean getBoolean(java.lang.String key,
boolean def)
key - the key to lookupdef - a default value to returnjava.lang.IllegalArgumentException - if the key exceeds 32 characters