Class ValueStackShadowMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
Ported to Struts:
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionValueStackShadowMap
(ValueStack valueStack) Constructs an instance of ValueStackShadowMap. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Implementation of containsKey(), overriding HashMap implementation.Implementation of get(), overriding HashMap implementation.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ValueStackShadowMap
Constructs an instance of ValueStackShadowMap.- Parameters:
valueStack
- - the underlying valuestack
-
-
Method Details
-
containsKey
Implementation of containsKey(), overriding HashMap implementation.- Parameters:
key
- - The key to check in HashMap and if not found to check on valueStack.- Returns:
- true, if contains key, false otherwise.
- See Also:
-
get
Implementation of get(), overriding HashMap implementation.- Parameters:
key
- - The key to get in HashMap and if not found there from the valueStack.- Returns:
- value - The object from HashMap or if null, from the valueStack.
- See Also:
-