org.tanukisoftware.wrapper
Class 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.
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.
|
getBooleanProperty
public static boolean getBooleanProperty(String name,
boolean defaultValue)
Resolves a boolean property.
name
- The name of the property to lookup.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)
Resolves an integer property.
name
- The name of the property to lookup.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)
Resolves a long property.
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.
- The requested property value.
Copyright 1999, 2006 Tanuki Software Inc., All Rights Reserved.