Methods Summary |
---|
public static boolean | removeBooleanProperty(java.util.Map properties, java.lang.String key, boolean defaultValue)Returns a boolean property from a Map and removes it.
boolean value = defaultValue;
if(properties != null && properties.containsKey(key))
{
try{value = ((Boolean)properties.remove(key)).booleanValue();}catch(Exception ignore){}
}
return value;
|
public static int | removeIntProperty(java.util.Map properties, java.lang.String key, int defaultValue)Returns an int property from a Map and removes it.
int value = defaultValue;
if(properties != null && properties.containsKey(key))
{
try{value = ((Integer)properties.remove(key)).intValue();}catch(Exception ignore){}
}
return value;
|
public static long | removeLongProperty(java.util.Map properties, java.lang.String key, long defaultValue)Returns a long property from a Map and removes it.
long value = defaultValue;
if(properties != null && properties.containsKey(key))
{
try{value = ((Long)properties.remove(key)).longValue();}catch(Exception ignore){}
}
return value;
|
public static java.lang.Object | removeObjectProperty(java.util.Map properties, java.lang.String key, java.lang.Object defaultValue)Returns an Object property from a Map and removes it.
Object value = defaultValue;
if(properties != null && properties.containsKey(key))
{
value = properties.remove(key);
}
return value;
|
public static java.lang.String | removeStringProperty(java.util.Map properties, java.lang.String key, java.lang.String defaultValue)Returns a String property from a Map and removes it.
String value = defaultValue;
if(properties != null && properties.containsKey(key))
{
try{value = (String)properties.remove(key);}catch(Exception ignore){}
}
return value;
|