Class MapStack<K>
java.lang.Object
org.apache.ofbiz.base.util.collections.MapContext<K,Object>
org.apache.ofbiz.base.util.collections.MapStack<K>
- All Implemented Interfaces:
Map<K,
,Object> LocalizedMap<Object>
Map Stack
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K> MapStack<K>
create()
static <K> MapStack<K>
static <K> MapStack<K>
Does a shallow copy of the internal stack of the passed MapStack; enables simultaneous stacks that share common parent MapsCreates a MapStack object that has the same Map objects on its stack, but with a new Map pushed on the top; meant to be used to enable a situation where a parent and child context are operating simultaneously using two different MapStack objects, but sharing the Maps in commonCreates a MapStack object that has the same Map objects on its stack; meant to be used to enable a situation where a parent and child context are operating simultaneously using two different MapStack objects, but sharing the Maps in commonMethods inherited from class org.apache.ofbiz.base.util.collections.MapContext
clear, containsKey, containsValue, entrySet, getContexts, isEmpty, keySet, pop, push, push, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MapStack
protected MapStack()
-
-
Method Details
-
create
-
create
-
create
Does a shallow copy of the internal stack of the passed MapStack; enables simultaneous stacks that share common parent Maps -
standAloneStack
Creates a MapStack object that has the same Map objects on its stack; meant to be used to enable a situation where a parent and child context are operating simultaneously using two different MapStack objects, but sharing the Maps in common -
standAloneChildStack
Creates a MapStack object that has the same Map objects on its stack, but with a new Map pushed on the top; meant to be used to enable a situation where a parent and child context are operating simultaneously using two different MapStack objects, but sharing the Maps in common -
get
-
get
- Specified by:
get
in interfaceLocalizedMap<K>
- Overrides:
get
in classMapContext<K,
Object>
-
put
-