com.ibm.ia.common
Class SystemPropertyHelper
- java.lang.Object
-
- com.ibm.ia.common.SystemPropertyHelper
-
public class SystemPropertyHelper extends java.lang.ObjectCollection of static utility methods to parse system properties to typed values.
-
-
Constructor Summary
Constructors Constructor and Description SystemPropertyHelper()
-
Method Summary
Methods Modifier and Type Method and Description static doublegetProperyAsDouble(java.lang.String name, double defaultValue)Get the value of a system property as andoublevalue.static intgetProperyAsInt(java.lang.String name, int defaultValue)Get the value of a system property as anintvalue.static longgetProperyAsLong(java.lang.String name, long defaultValue)Get the value of a system property as anlongvalue.
-
-
-
Method Detail
-
getProperyAsInt
public static int getProperyAsInt(java.lang.String name, int defaultValue)Get the value of a system property as anintvalue.- Parameters:
name- the name of the property to fetch.defaultValue- the default value of the property if it is invalid or unspecified.- Returns:
- an int value for the property.
-
getProperyAsLong
public static long getProperyAsLong(java.lang.String name, long defaultValue)Get the value of a system property as anlongvalue.- Parameters:
name- the name of the property to fetch.defaultValue- the default value of the property if it is invalid or unspecified.- Returns:
- a long value for the property.
-
getProperyAsDouble
public static double getProperyAsDouble(java.lang.String name, double defaultValue)Get the value of a system property as andoublevalue.- Parameters:
name- the name of the property to fetch.defaultValue- the default value of the property if it is invalid or unspecified.- Returns:
- a double value for the property.
-
-