Class KeyValueStore
java.lang.Object
com.github.kaktushose.jda.commands.dispatching.context.KeyValueStore
A simple key-value-store to store variables between events.
-
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:
true
if 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
-