java.lang.Object
javax.script.SimpleBindings
A simple implementation of Bindings backed by
a
HashMap or some other specified Map.- Since:
- 1.6
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor uses aHashMap.Constructor uses an existingMapto store the values. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()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.entrySet()Returns aSetview of the mappings contained in this map.Returns the value to which this map maps the specified key.booleanisEmpty()Returnstrueif this map contains no key-value mappings.keySet()Returns aSetview of the keys contained in this map.Sets the specified key/value in the underlyingmapfield.voidputAllis implemented usingMap.putAll.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.values()Returns aCollectionview of the values contained in this map.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SimpleBindings
Constructor uses an existingMapto store the values.- Parameters:
m- TheMapbacking thisSimpleBindings.- Throws:
NullPointerException- if m is null
-
SimpleBindings
public SimpleBindings()Default constructor uses aHashMap.
-
-
Method Details
-
put
public
-