|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.SystemProperties
public class SystemProperties
Utility class to deal with retrieving properties from System.
| Constructor Summary | |
|---|---|
SystemProperties()
|
|
| Method Summary | ||
|---|---|---|
static boolean |
getBooleanProperty(String name,
boolean def)
Returns the boolean value associated with the given system property, or the default if the property was unset or a string other than "true" or "false." |
|
static double |
getDoubleProperty(String name,
double def)
Returns the double value associated with the given system property, or the default if the property was unset or set to an unparseable string. |
|
static
|
getEnumProperty(String name,
Class<T> enumType,
T def)
Returns the enum value associated with the given system property or the default if the property was unset or set to an unparseable value. |
|
static int |
getIntProperty(String name,
int def)
Returns the integer value associated with the given system property, or the default if the property was unset or set to an unparseable string. |
|
static long |
getLongProperty(String name,
long def)
Returns the long value associated with the given system property, or the default if the property was unset or set to an unparseable string. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemProperties()
| Method Detail |
|---|
public static <T extends Enum<T>> T getEnumProperty(String name,
Class<T> enumType,
T def)
name - Name of the System.getProperty() property to fetchdef - Default value if property not found
public static int getIntProperty(String name,
int def)
name - Name of the System.getProperty() property to fetchdef - Default value if property not found
public static long getLongProperty(String name,
long def)
name - Name of the System.getProperty() property to fetchdef - Default value if property not found
public static double getDoubleProperty(String name,
double def)
name - Name of the System.getProperty() property to fetchdef - Default value if property not found
public static boolean getBooleanProperty(String name,
boolean def)
name - Name of the System.getProperty() property to fetchdef - Default value if property not found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||