|
|||||||||
| 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 |
|---|
java.util.Map.Entry |
| Method Summary | |
|---|---|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which this map maps the specified key. |
java.lang.Object |
put(java.lang.String 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)
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 |
|---|
java.lang.Object put(java.lang.String key,
java.lang.Object value)
key - the String value which uniquely identifies the
objectvalue - the object to be stored.
java.lang.NullPointerException - if key is null
java.lang.ClassCastException - if the key is not a String
java.lang.IllegalArgumentException - if the key is an empty stringvoid putAll(java.util.Map toMerge)
putAll in interface java.util.MaptoMerge - mappings to be stored in the map.
java.lang.NullPointerException - if toMerge map is null or if some key in the map is null.
java.lang.IllegalArgumentException - if some key in the map is an empty String
java.lang.ClassCastException - if some key in the map is not a Stringboolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mapkey - key whose presence in this map is to be tested.
java.lang.NullPointerException - if key is null
java.lang.ClassCastException - if key is not a String
java.lang.IllegalArgumentException - if key is empty Stringjava.lang.Object get(java.lang.Object key)
get in interface java.util.Mapkey - key whose presence in this map is to be tested.
java.lang.NullPointerException - if key is null
java.lang.ClassCastException - if key is not a String
java.lang.IllegalArgumentException - if key is empty Stringjava.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapkey - key of entry to be removed.
java.lang.NullPointerException - if key is null
java.lang.ClassCastException - if key is not a String
java.lang.IllegalArgumentException - if key is empty String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||