|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tanukisoftware.wrapper.WrapperSystemPropertyUtil
public final class WrapperSystemPropertyUtil
A collection of utility methods which make it easy to work with System Properties without littering code with error handling.
Method Summary | |
---|---|
static boolean |
getBooleanProperty(String name,
boolean defaultValue)
Resolves a boolean property. |
static int |
getIntProperty(String name,
int defaultValue)
Resolves an integer property. |
static long |
getLongProperty(String name,
long defaultValue)
Resolves a long property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean getBooleanProperty(String name, boolean defaultValue)
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.
public static int getIntProperty(String name, int defaultValue)
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.
public static long getLongProperty(String name, long defaultValue)
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |