Class PropertiesUtil
- java.lang.Object
-
- org.eclipse.ecf.core.sharedobject.util.PropertiesUtil
-
public class PropertiesUtil extends Object
- Since:
- 2.4
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetProperty(Class<T> type, Map<String,?> properties, String name, T def)static booleangetPropertyBoolean(Map<String,?> properties, String name)static booleangetPropertyBoolean(Map<String,?> properties, String name, boolean def)static byte[]getPropertyBytes(Map<String,?> properties, String name)static byte[]getPropertyBytes(Map<String,?> properties, String name, byte[] def)static doublegetPropertyDouble(Map<String,?> properties, String name)static doublegetPropertyDouble(Map<String,?> properties, String name, double def)static floatgetPropertyFloat(Map<String,?> properties, String name)static floatgetPropertyFloat(Map<String,?> properties, String name, float def)static intgetPropertyInteger(Map<String,?> properties, String name)static intgetPropertyInteger(Map<String,?> properties, String name, int def)static longgetPropertyLong(Map<String,?> properties, String name)static longgetPropertyLong(Map<String,?> properties, String name, long def)static StringgetPropertyString(Map<String,?> properties, String name)static StringgetPropertyString(Map<String,?> properties, String name, String def)
-
-
-
Method Detail
-
getProperty
public static final <T> T getProperty(Class<T> type, Map<String,?> properties, String name, T def)
-
getPropertyString
public static final String getPropertyString(Map<String,?> properties, String name, String def)
-
getPropertyString
public static final String getPropertyString(Map<String,?> properties, String name)
-
getPropertyFloat
public static final float getPropertyFloat(Map<String,?> properties, String name, float def)
-
getPropertyFloat
public static final float getPropertyFloat(Map<String,?> properties, String name)
-
getPropertyDouble
public static final double getPropertyDouble(Map<String,?> properties, String name, double def)
-
getPropertyDouble
public static final double getPropertyDouble(Map<String,?> properties, String name)
-
getPropertyInteger
public static final int getPropertyInteger(Map<String,?> properties, String name, int def)
-
getPropertyInteger
public static final int getPropertyInteger(Map<String,?> properties, String name)
-
getPropertyLong
public static final long getPropertyLong(Map<String,?> properties, String name, long def)
-
getPropertyBoolean
public static final boolean getPropertyBoolean(Map<String,?> properties, String name, boolean def)
-
getPropertyBoolean
public static final boolean getPropertyBoolean(Map<String,?> properties, String name)
-
getPropertyBytes
public static final byte[] getPropertyBytes(Map<String,?> properties, String name, byte[] def)
-
-