org.tanukisoftware.wrapper
Class WrapperSystemPropertyUtil
java.lang.Object
|
+--org.tanukisoftware.wrapper.WrapperSystemPropertyUtil
- public final class WrapperSystemPropertyUtil
- extends java.lang.Object
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 |
static boolean |
getBooleanProperty(java.lang.String name,
boolean defaultValue)
Resolves a boolean property. |
static int |
getIntProperty(java.lang.String name,
int defaultValue)
Resolves an integer property. |
static long |
getLongProperty(java.lang.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 |
getBooleanProperty
public static boolean getBooleanProperty(java.lang.String name,
boolean defaultValue)
- Resolves a boolean property.
- Parameters:
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.- Returns:
- The requested property value.
getIntProperty
public static int getIntProperty(java.lang.String name,
int defaultValue)
- Resolves an integer property.
- Parameters:
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.- Returns:
- The requested property value.
getLongProperty
public static long getLongProperty(java.lang.String name,
long defaultValue)
- Resolves a long property.
- Parameters:
name
- The name of the property to lookup.defaultValue
- The value to return if it is not set or is invalid.- Returns:
- The requested property value.
Copyright 1999, 2006 Tanuki Software Inc., All Rights Reserved.