| java.lang.Object org.tanukisoftware.wrapper.WrapperSystemPropertyUtil
WrapperSystemPropertyUtil | final public class WrapperSystemPropertyUtil (Code) | | A collection of utility methods which make it easy to work with System
Properties without littering code with error handling.
author: Leif Mortenson |
Method Summary | |
public static boolean | getBooleanProperty(String name, boolean defaultValue) Resolves a boolean property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. | public static int | getIntProperty(String name, int defaultValue) Resolves an integer property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. | public static long | getLongProperty(String name, long defaultValue) Resolves a long property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. |
getBooleanProperty | public static boolean getBooleanProperty(String name, boolean defaultValue)(Code) | | Resolves a boolean property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. The requested property value. |
getIntProperty | public static int getIntProperty(String name, int defaultValue)(Code) | | Resolves an integer property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. The requested property value. |
getLongProperty | public static long getLongProperty(String name, long defaultValue)(Code) | | Resolves a long property.
Parameters: name - The name of the property to lookup. Parameters: defaultValue - The value to return if it is not set or is invalid. The requested property value. |
|
|