public class PropertiesUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
PropertiesUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
get(Properties properties,
String propertyName) |
static boolean |
getBoolean(Properties properties,
String propertyName,
boolean defaultValue) |
static double |
getDouble(Properties properties,
String propertyName,
double defaultValue) |
static <T extends Enum<T>> |
getEnum(Properties properties,
String propertyName,
Class<T> enumType,
T defaultValue) |
static float |
getFloat(Properties properties,
String propertyName,
float defaultValue) |
static int |
getInteger(Properties properties,
String propertyName,
int defaultValue) |
static long |
getLong(Properties properties,
String propertyName,
long defaultValue) |
static short |
getShort(Properties properties,
String propertyName,
short defaultValue) |
public static String get(Properties properties, String propertyName)
public static boolean getBoolean(Properties properties, String propertyName, boolean defaultValue)
public static short getShort(Properties properties, String propertyName, short defaultValue)
public static int getInteger(Properties properties, String propertyName, int defaultValue)
public static long getLong(Properties properties, String propertyName, long defaultValue)
public static float getFloat(Properties properties, String propertyName, float defaultValue)
public static double getDouble(Properties properties, String propertyName, double defaultValue)
public static <T extends Enum<T>> T getEnum(Properties properties, String propertyName, Class<T> enumType, T defaultValue)
Copyright © GigaSpaces.