public final class SettingsMap extends Object
This class stores all text parameters and allows an easy access to these.
| Constructor and Description |
|---|
SettingsMap()
Default constructor to create a new, empty
SettingsMap object. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OperationalTextKey textKey,
String textValue)
Adds a parameter to this
SettingsMap. |
ByteBuffer |
asByteBuffer()
Returns a buffer of the serialized key-value pairs, which are contained
in this instance.
|
void |
clear()
Removes all stored settings from this
SettingsMap. |
Set<Map.Entry<OperationalTextKey,String>> |
entrySet()
Returns a set of an key-value pair of this
OperationTextKeys object. |
boolean |
equals(Map<OperationalTextKey,String> aMap)
This method compares the text parameters of
this object with
the ones given by a Map object. |
boolean |
equals(SettingsMap aSettingsMap)
This method compares the text parameters of
this object with
the ones given by a Map object. |
String |
get(OperationalTextKey textKey)
Returns the value of the given parameter, which is not parsed.
|
int |
hashCode() |
String |
remove(OperationalTextKey textKey)
Removes the given parameter from this
SettingsMap. |
int |
size() |
String |
toString() |
void |
update(OperationalTextKey textKey,
String newTextValue,
IResultFunction resultFunction)
Update the stored value with the given one.
|
public SettingsMap()
SettingsMap object.public final void add(OperationalTextKey textKey, String textValue)
SettingsMap.textKey - The name of the parameter to add.textValue - The value of the parameter to add.public final String get(OperationalTextKey textKey)
textKey - The name of the parameter.public final String remove(OperationalTextKey textKey)
SettingsMap.textKey - The name of the parameter.public final void update(OperationalTextKey textKey, String newTextValue, IResultFunction resultFunction)
IResultFunction instance.textKey - The OperationalTextKey to update.newTextValue - The new value, which is interpreted as response.resultFunction - The IResultFunction to use to obtaining the
result.public final boolean equals(SettingsMap aSettingsMap)
this object with
the ones given by a Map object.aSettingsMap - A SettingsMap object, which should be used for
the comparsion.true, if the all keys are equal with the ones of the aSettingsMap
object. Else false.public final boolean equals(Map<OperationalTextKey,String> aMap)
this object with
the ones given by a Map object.aMap - A Map<String, String> object, which should
be used for the comparsion.true, if the all keys are equal with the ones of the aMap object.
Else false.public final Set<Map.Entry<OperationalTextKey,String>> entrySet()
OperationTextKeys object.public final void clear()
SettingsMap.public final ByteBuffer asByteBuffer()
public int size()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.