- java.lang.Object
-
- javax.script.SimpleBindings
-
-
Constructor Summary
Constructors Constructor Description SimpleBindings()Default constructor uses aHashMap.SimpleBindings(Map<String,Object> m)Constructor uses an existingMapto store the values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Removes all of the mappings from this map (optional operation).booleancontainsKey(Object key)Returnstrueif this map contains a mapping for the specified key.booleancontainsValue(Object value)Returnstrueif this map maps one or more keys to the specified value.Set<Map.Entry<String,Object>>entrySet()Returns aSetview of the mappings contained in this map.Objectget(Object key)Returns the value to which this map maps the specified key.booleanisEmpty()Returnstrueif this map contains no key-value mappings.Set<String>keySet()Returns aSetview of the keys contained in this map.Objectput(String name, Object value)Sets the specified key/value in the underlyingmapfield.voidputAll(Map<? extends String,? extends Object> toMerge)putAllis implemented usingMap.putAll.Objectremove(Object key)Removes the mapping for this key from this map if it is present (optional operation).intsize()Returns the number of key-value mappings in this map.Collection<Object>values()Returns aCollectionview of the values contained in this map.
-
-
-
Constructor Detail
-
SimpleBindings
public SimpleBindings(Map<String,Object> m)
Constructor uses an existingMapto store the values.- Parameters:
m- TheMapbacking thisSimpleBindings.- Throws:
NullPointerException- if m is null
-
SimpleBindings
public SimpleBindings()
Default constructor uses aHashMap.
-
-