public abstract class StringBasedTypedProperties extends TypedProperties
void TypedProperties.clear()
boolean contains(String key)
String getString(String key, String defaultValue)
void remove(String key)
void setString(String key, String value)
Methods below which this class implements are just wrappers over
getString(String key, String defaultValue) or
setString(String key, String value).
boolean getBoolean(String key, boolean defaultValue)
float getFloat(String key, float defaultValue)
double getDouble(String key, double defaultValue)
int getInt(String key, int defaultValue)
long getLong(String key, long defaultValue)
void setBoolean(String key, boolean value)
void setFloat(String key, float value)
void setDouble(String key, double value)
void setInt(String key, int value)
void setLong(String key, long value)
| Modifier | Constructor and Description |
|---|---|
protected |
StringBasedTypedProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key,
boolean defaultValue)
Get the value of the property identified by the key as boolean.
|
double |
getDouble(String key,
double defaultValue)
Get the value of the property identified by the key as double.
|
float |
getFloat(String key,
float defaultValue)
Get the value of the property identified by the key as float.
|
int |
getInt(String key,
int defaultValue)
Get the value of the property identified by the key as int.
|
long |
getLong(String key,
long defaultValue)
Get the value of the property identified by the key as long.
|
void |
setBoolean(String key,
boolean value)
Set the value to the property identified by the key.
|
void |
setDouble(String key,
double value)
Set the value to the property identified by the key.
|
void |
setFloat(String key,
float value)
Set the value to the property identified by the key.
|
void |
setInt(String key,
int value)
Set the value to the property identified by the key.
|
void |
setLong(String key,
long value)
Set the value to the property identified by the key.
|
clear, contains, 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, getString, remove, remove, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setBoolean, setDouble, setEnum, setEnum, setFloat, setInt, setLong, setString, setStringpublic boolean getBoolean(String key, boolean defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getBoolean in class TypedPropertiespublic float getFloat(String key, float defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getFloat in class TypedPropertiespublic double getDouble(String key, double defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getDouble in class TypedPropertiespublic int getInt(String key, int defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getInt in class TypedPropertiespublic long getLong(String key, long defaultValue)
TypedPropertieskey is null or there is no property for the key,
defaultValue is returned.getLong in class TypedPropertiespublic void setBoolean(String key, boolean value)
TypedPropertieskey is null, nothing is done.setBoolean in class TypedPropertiespublic void setFloat(String key, float value)
TypedPropertieskey is null, nothing is done.setFloat in class TypedPropertiespublic void setDouble(String key, double value)
TypedPropertieskey is null, nothing is done.setDouble in class TypedPropertiespublic void setInt(String key, int value)
TypedPropertieskey is null, nothing is done.setInt in class TypedPropertiespublic void setLong(String key, long value)
TypedPropertieskey is null, nothing is done.setLong in class TypedPropertiesCopyright © 2016. All rights reserved.