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, setLong
contains, 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, setString
public PropertiesWrapper(Properties properties)
public boolean contains(String key)
TypedProperties
contains
in class TypedProperties
public String getString(String key, String defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getString
in class TypedProperties
public void setString(String key, String value)
TypedProperties
key
is null, nothing is done.setString
in class TypedProperties
public void remove(String key)
TypedProperties
key
is null, nothing is done.remove
in class TypedProperties
public void clear()
TypedProperties
clear
in class TypedProperties
Copyright © 2016. All rights reserved.