| java.lang.Object javax.script.SimpleBindings
SimpleBindings | public class SimpleBindings implements Bindings(Code) | | A simple implementation of Bindings backed by
a HashMap or some other specified Map .
author: Mike Grogan version: 1.0 since: 1.6 |
SimpleBindings | public SimpleBindings(Map<String, Object> m)(Code) | | Constructor uses an existing Map to store the values.
Parameters: m - The Map backing this SimpleBindings . throws: NullPointerException - if m is null |
SimpleBindings | public SimpleBindings()(Code) | | Default constructor uses a HashMap .
|
clear | public void clear()(Code) | |
|
containsValue | public boolean containsValue(Object value)(Code) | |
|
isEmpty | public boolean isEmpty()(Code) | |
|
put | public Object put(String name, Object value)(Code) | | Sets the specified key/value in the underlying map field.
Parameters: name - Name of value Parameters: value - Value to set. Previous value for the specified key. Returns null if key was previously unset. NullPointerException if the name is null. IllegalArgumentException if the name is empty. |
putAll | public void putAll(Map<? extends String, ? extends Object> toMerge)(Code) | | putAll is implemented using Map.putAll .
Parameters: toMerge - The Map of values to add. NullPointerException if some key in the specified Map is null. IllegalArgumentException if some key in the specified Map is empty String. |
|
|