public interface ActionBindings
ActionEngine
(keys are strings).Modifier and Type | Method and Description |
---|---|
default boolean |
containsKey(java.lang.String key)
Whether the bindings contains a mapping for the supplied key.
|
<T> T |
get(java.lang.String key)
Gets the value bound to the supplied key.
|
<T> T |
put(java.lang.String key,
T value)
Binds the supplied key-value pair.
|
void |
putAll(java.util.Map<java.lang.String,?> map)
Binds all of the key-value pairs in the supplied map.
|
<T> T |
remove(java.lang.String key)
Removes the value bound to the supplied key.
|
void |
removeAll()
Removes all key-value pairs.
|
java.util.Map<java.lang.String,?> |
toMap()
Maps the key-values combinations.
|
default boolean containsKey(java.lang.String key)
key
- Key to check.<T> T get(java.lang.String key)
key
- Key to check.<T> T put(java.lang.String key, T value)
key
- Key to bind value to.value
- Value to bind.void putAll(java.util.Map<java.lang.String,?> map)
map
- Key-value pairs to bind.<T> T remove(java.lang.String key)
key
- Key to check.void removeAll()
java.util.Map<java.lang.String,?> toMap()