- All Known Implementing Classes:
SimpleBindings
A mapping of key/value pairs, all of whose keys are
Strings.- Since:
- 1.6
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) Returnstrueif this map contains a mapping for the specified key.Returns the value to which this map maps the specified key.Set a named value.voidAdds all the mappings in a givenMapto thisBindings.Removes the mapping for this key from this map if it is present (optional operation).Methods declared in interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Method Details
-
put
Set a named value.- Specified by:
putin interfaceMap<String,Object> - Parameters:
name- The name associated with the value.value- The value associated with the name.- Returns:
- The value previously associated with the given name. Returns null if no value was previously associated with the name.
- Throws:
NullPointerException- if the name is null.IllegalArgumentException- if the name is empty String.
-
putAll
Adds all the mappings in a givenMapto thisBindings.- Specified by:
-