Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
getBooleanSafe(String name) Retrieves a Boolean System property, or returns false if:
|
|
static Integer |
getIntegerSafe(String name, Integer def) Retrieves an Integer System property |
|
static Long |
getLongSafe(String name, Long def) Retrieves an Long System property |
|
static String |
getSystemPropertySafe(String name, String defaultValue) Retrieves a System property, or returns some default value if:
|
|
static String |
getSystemPropertySafe(String name) Retrieves a System property, or null if:
|
|
static String |
setSystemPropertyFrom(String nameValue) Sets a system property from a name=value String.
|
|
static String |
setSystemPropertyFromSafe(String nameValue) Sets a system property from a name=value String.
|
Retrieves a Boolean System property, or returns false if:
name
- the name of the system property.Retrieves an Integer System property
name
- the name of the system property.def
- the default valueRetrieves an Long System property
name
- the name of the system property.def
- the default valueRetrieves a System property, or returns some default value if:
name
- the name of the system property.defaultValue
- a default value.Retrieves a System property, or null if:
name
- the name of the system property. Sets a system property from a name=value
String.
If no '=' is found, the property is assumed to be a Boolean flag with value true
.
nameValue
- the non-null name=value String Sets a system property from a name=value
String.
If no '=' is found, the property is assumed to be a Boolean flag with value true
.
Does nothing if a Security manager is in place which doesn't allow the operation.
nameValue
- the non-null name=value String