|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.script.SimpleBindings
public class SimpleBindings
A simple implementation of Bindings, backed by a HashMap (or other Map). This class is not synchronized (nor is HashMap). See Javadoc of Java Scripting API
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry |
| Constructor Summary | |
|---|---|
SimpleBindings()
Constructs a SimpleBindings. |
|
SimpleBindings(java.util.Map map)
Constructs a SimpleBindings and initializes it using a specified map. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which this map maps the specified key. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Deprecated. use put(String, Object) instead |
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). |
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public SimpleBindings()
public SimpleBindings(java.util.Map map)
map - a map which is used to initialize the
SimpleBindings
java.lang.NullPointerException - if the map is null| Method Detail |
|---|
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface Bindingskey - the String value which uniquely identifies the
objectvalue - the object to be stored.
java.lang.NullPointerException - if the key is null
java.lang.IllegalArgumentException - if the key is the empty String
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic void putAll(java.util.Map toMerge)
putAll in interface java.util.MapputAll in interface BindingstoMerge - mappings to be stored in the map.public int size()
size in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapcontainsKey in interface Bindingskey - key whose presence in this map is to be tested.
public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in interface Bindingskey - key whose presence in this map is to be tested.
public java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in interface Bindingskey - key of entry to be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||