public class PropertyUtil
extends java.lang.Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanProperty(HasProperties props,
java.lang.String prop,
boolean defValue) |
static boolean |
getBooleanProperty(java.util.Properties props,
java.lang.String prop,
boolean defValue) |
static int |
getIntProperty(HasProperties props,
java.lang.String prop,
int defValue) |
static int |
getIntProperty(java.util.Properties props,
java.lang.String prop,
int defValue) |
static <T> T |
getProperty(HasProperties props,
java.lang.String prop)
Gets a System Property from the SKD System Properties (remember, don't
pass skd.
|
static <T> T |
getProperty(HasProperties props,
java.lang.String prop,
T def) |
static <T> T |
getProperty(java.util.Properties props,
java.lang.String prop) |
static <T> T |
getProperty(java.util.Properties props,
java.lang.String prop,
T def) |
static boolean |
toBoolean(java.lang.Object val,
boolean defValue) |
static int |
toInt(java.lang.Object val,
int defValue) |
public static <T> T getProperty(HasProperties props, java.lang.String prop)
prop
- public static <T> T getProperty(java.util.Properties props, java.lang.String prop)
public static <T> T getProperty(HasProperties props, java.lang.String prop, T def)
public static <T> T getProperty(java.util.Properties props, java.lang.String prop, T def)
public static int getIntProperty(HasProperties props, java.lang.String prop, int defValue)
public static int getIntProperty(java.util.Properties props, java.lang.String prop, int defValue)
public static int toInt(java.lang.Object val, int defValue)
public static boolean getBooleanProperty(HasProperties props, java.lang.String prop, boolean defValue)
public static boolean getBooleanProperty(java.util.Properties props, java.lang.String prop, boolean defValue)
public static boolean toBoolean(java.lang.Object val, boolean defValue)