|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Bindings
A mapping of key/value pairs, all of whose keys are non-empty Strings. See Javadoc of Java Scripting API
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Method Summary | |
---|---|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
Object |
get(Object key)
Returns the value to which this map maps the specified key. |
Object |
put(String key,
Object value)
Associates the specified value with the specified key in a java.util.Map. |
void |
putAll(Map toMerge)
Copies all of the mappings from the specified map to this map. |
Object |
remove(Object key)
Removes the mapping for this key from this map if it is present (optional operation). |
Methods inherited from interface java.util.Map |
---|
clear, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, size, values |
Method Detail |
---|
Object put(String key, Object value)
key
- the String value which uniquely identifies the
objectvalue
- the object to be stored.
NullPointerException
- if key is null
ClassCastException
- if the key is not a String
IllegalArgumentException
- if the key is an empty stringvoid putAll(Map toMerge)
putAll
in interface Map
toMerge
- mappings to be stored in the map.
NullPointerException
- if toMerge map is null or if some key in the map is null.
IllegalArgumentException
- if some key in the map is an empty String
ClassCastException
- if some key in the map is not a Stringboolean containsKey(Object key)
containsKey
in interface Map
key
- key whose presence in this map is to be tested.
NullPointerException
- if key is null
ClassCastException
- if key is not a String
IllegalArgumentException
- if key is empty StringObject get(Object key)
get
in interface Map
key
- key whose presence in this map is to be tested.
NullPointerException
- if key is null
ClassCastException
- if key is not a String
IllegalArgumentException
- if key is empty StringObject remove(Object key)
remove
in interface Map
key
- key of entry to be removed.
NullPointerException
- if key is null
ClassCastException
- if key is not a String
IllegalArgumentException
- if key is empty String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |