javax.script
Interface Bindings
- All Superinterfaces:
- java.util.Map
- All Known Implementing Classes:
- SimpleBindings
public interface Bindings
- extends java.util.Map
See Javadoc of Java Scripting API
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
boolean |
containsKey(java.lang.Object key)
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in a
java.util.Map. |
void |
putAll(java.util.Map toMerge)
Copies all of the mappings from the specified map to this map. |
java.lang.Object |
remove(java.lang.Object key)
|
Methods inherited from interface java.util.Map |
clear, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size, values |
put
java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Associates the specified value with the specified key in a
java.util.Map. If the map previously contained a mapping for
this key, the old value is replaced.
- Specified by:
put
in interface java.util.Map
- Parameters:
key
- the String value which uniquely identifies the
objectvalue
- the object to be stored.
- Throws:
java.lang.IllegalArgumentException
- if the key is null not an
instance of java.lang.String
putAll
void putAll(java.util.Map toMerge)
- Copies all of the mappings from the specified map to this map.
These mappings will replace any mappings that this map had for
any of the keys currently in the specified map.
- Specified by:
putAll
in interface java.util.Map
- Parameters:
toMerge
- mappings to be stored in the map.
- Throws:
java.lang.IllegalArgumentException
- if a key is null or is not an
instance of java.lang.String
containsKey
boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map
get
java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map
remove
java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.