public class DefaultActionBindings extends java.lang.Object implements ActionBindings
Constructor and Description |
---|
DefaultActionBindings()
Creates a new instance of DefaultActionBindings.
|
DefaultActionBindings(ActionBindings sourceBindings)
Creates a new instance of DefaultActionBindings with the supplied source bindings.
|
DefaultActionBindings(java.util.Map<java.lang.String,?> map)
Creates a new instance of DefaultActionBindings with the supplied key-value pairs.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsKey
public DefaultActionBindings()
public DefaultActionBindings(ActionBindings sourceBindings)
sourceBindings
- Source bindings to shallow copy.public DefaultActionBindings(java.util.Map<java.lang.String,?> map)
map
- Key-value pairs to add.public <T> T get(java.lang.String key)
ActionBindings
get
in interface ActionBindings
key
- Key to check.public <T> T put(java.lang.String key, T value)
ActionBindings
put
in interface ActionBindings
key
- Key to bind value to.value
- Value to bind.public void putAll(java.util.Map<java.lang.String,?> map)
ActionBindings
putAll
in interface ActionBindings
map
- Key-value pairs to bind.public <T> T remove(java.lang.String key)
ActionBindings
remove
in interface ActionBindings
key
- Key to check.public void removeAll()
ActionBindings
removeAll
in interface ActionBindings
public java.util.Map<java.lang.String,?> toMap()
ActionBindings
toMap
in interface ActionBindings
public java.lang.String toString()
toString
in class java.lang.Object