Package com.gigaspaces.internal.utils
Class PropertiesUtils
java.lang.Object
com.gigaspaces.internal.utils.PropertiesUtils
- Since:
- 7.0
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Propertiesstatic Stringget(Properties properties, String propertyName) static booleangetBoolean(Properties properties, String propertyName, boolean defaultValue) static doublegetDouble(Properties properties, String propertyName, double defaultValue) static <T extends Enum<T>>
TgetEnum(Properties properties, String propertyName, Class<T> enumType, T defaultValue) static floatgetFloat(Properties properties, String propertyName, float defaultValue) static intgetInteger(Properties properties, String propertyName, int defaultValue) static longgetLong(Properties properties, String propertyName, long defaultValue) static shortgetShort(Properties properties, String propertyName, short defaultValue)
-
Constructor Details
-
PropertiesUtils
protected PropertiesUtils()
-
-
Method Details
-
get
-
getBoolean
-
getShort
-
getInteger
-
getLong
-
getFloat
-
getDouble
-
getEnum
public static <T extends Enum<T>> T getEnum(Properties properties, String propertyName, Class<T> enumType, T defaultValue) -
fromMap
-