public class PropertiesWrapper extends StringBasedTypedProperties
| Constructor and Description |
|---|
PropertiesWrapper(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all properties.
|
boolean |
contains(String key)
Check if the property identified by the key exists.
|
String |
getString(String key,
String defaultValue)
Get the value of the property identified by the key as String.
|
void |
remove(String key)
Remove the property identified by the key.
|
void |
setString(String key,
String value)
Set the value to the property identified by the key.
|
getBoolean, getDouble, getFloat, getInt, getLong, setBoolean, setDouble, setFloat, setInt, setLongcontains, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getEnum, getEnum, getEnum, getEnum, getEnum, getEnum, getFloat, getFloat, getFloat, getInt, getInt, getInt, getLong, getLong, getLong, getString, getString, getString, remove, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setBoolean, setDouble, setEnum, setEnum, setFloat, setInt, setLong, setStringpublic PropertiesWrapper(Properties properties)
public boolean contains(String key)
TypedPropertiescontains in class TypedPropertiespublic String getString(String key, String defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getString in class TypedPropertiespublic void setString(String key, String value)
TypedPropertieskey is null, nothing is done.setString in class TypedPropertiespublic void remove(String key)
TypedPropertieskey is null, nothing is done.remove in class TypedPropertiespublic void clear()
TypedPropertiesclear in class TypedPropertiesCopyright © 2016. All rights reserved.