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, setString
public boolean getBoolean(String key, boolean defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getBoolean
in class TypedProperties
public float getFloat(String key, float defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getFloat
in class TypedProperties
public double getDouble(String key, double defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getDouble
in class TypedProperties
public int getInt(String key, int defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getInt
in class TypedProperties
public long getLong(String key, long defaultValue)
TypedProperties
key
is null or there is no property for the key,
defaultValue
is returned.getLong
in class TypedProperties
public void setBoolean(String key, boolean value)
TypedProperties
key
is null, nothing is done.setBoolean
in class TypedProperties
public void setFloat(String key, float value)
TypedProperties
key
is null, nothing is done.setFloat
in class TypedProperties
public void setDouble(String key, double value)
TypedProperties
key
is null, nothing is done.setDouble
in class TypedProperties
public void setInt(String key, int value)
TypedProperties
key
is null, nothing is done.setInt
in class TypedProperties
public void setLong(String key, long value)
TypedProperties
key
is null, nothing is done.setLong
in class TypedProperties
Copyright © 2016. All rights reserved.