Class KeyValueStore
java.lang.Object
io.github.kaktushose.jdac.dispatching.context.KeyValueStore
A simple key-value-store to store variables between events.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeyValueStore
public KeyValueStore()
-
-
Method Details
-
get
-
put
Associates the specified value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this instance for fluent interface
-
contains
Whether this StateSection has a value mapped to the key.- Parameters:
key- the key- Returns:
trueif this StateSection has a value mapped to the key
-
remove
Removes the value mapping for a key.- Parameters:
key- key whose mapping is to be removed- Returns:
- this instance for fluent interface
-
clear
Removes all the value mappings.- Returns:
- this instance for fluent interface
-