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, waitcontainsKeypublic 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)
ActionBindingsget in interface ActionBindingskey - Key to check.public <T> T put(java.lang.String key,
T value)
ActionBindingsput in interface ActionBindingskey - Key to bind value to.value - Value to bind.public void putAll(java.util.Map<java.lang.String,?> map)
ActionBindingsputAll in interface ActionBindingsmap - Key-value pairs to bind.public <T> T remove(java.lang.String key)
ActionBindingsremove in interface ActionBindingskey - Key to check.public void removeAll()
ActionBindingsremoveAll in interface ActionBindingspublic java.util.Map<java.lang.String,?> toMap()
ActionBindingstoMap in interface ActionBindingspublic java.lang.String toString()
toString in class java.lang.Object