public interface ParameterStore
Modifier and Type | Interface and Description |
---|---|
static class |
ParameterStore.Entry
Class to statically specify one single parameter (property) with description default value.
|
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getValue(ParameterStore.Entry entry)
Returns the parameter value associated with the specified entry or the default value if parameter is empty.
|
java.lang.String |
getValue(java.lang.String key)
Returns the parameter value associated with the specified key.
|
boolean |
getValueAsBoolean(java.lang.String key)
Returns the parameter value associated with the specified key as boolean.
|
double |
getValueAsDouble(java.lang.String key)
Returns the parameter value associated with the specified key as double.
|
int |
getValueAsInt(java.lang.String key)
Returns the parameter value associated with the specified key as integer.
|
default void |
setValue(ParameterStore.Entry entry,
java.lang.String value)
Sets the parameter value.
|
void |
setValue(java.lang.String key,
boolean value)
Sets the parameter value.
|
void |
setValue(java.lang.String key,
double value)
Sets the parameter value.
|
void |
setValue(java.lang.String key,
int value)
Sets the parameter value.
|
void |
setValue(java.lang.String key,
java.lang.String value)
Sets the parameter value.
|
java.lang.String getValue(java.lang.String key)
key
- the key of the parameter to be retrieveddefault java.lang.String getValue(ParameterStore.Entry entry)
entry
- the entry whose parameter is to receiveint getValueAsInt(java.lang.String key)
key
- the key of the parameter to be retrieveddouble getValueAsDouble(java.lang.String key)
key
- the key of the parameter to be retrievedboolean getValueAsBoolean(java.lang.String key)
key
- the key of the parameter to be retrieveddefault void setValue(ParameterStore.Entry entry, java.lang.String value)
entry
- the entry (key) of the parameter to setvalue
- the value of the parameter to setvoid setValue(java.lang.String key, java.lang.String value)
key
- the key of the parameter to setvalue
- the value of the parameter to setvoid setValue(java.lang.String key, int value)
key
- the key of the parameter to setvalue
- the value of the parameter to setvoid setValue(java.lang.String key, double value)
key
- the key of the parameter to setvalue
- the value of the parameter to setvoid setValue(java.lang.String key, boolean value)
key
- the key of the parameter to setvalue
- the value of the parameter to setCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de