Package org.apache.calcite.util
Class CompositeMap<K,V>
java.lang.Object
org.apache.calcite.util.CompositeMap<K,V>
- Type Parameters:
K
- Key typeV
- Value type
- All Implemented Interfaces:
Map<K,
V>
Unmodifiable view onto multiple backing maps. An element occurs in the map
if it occurs in any of the backing maps; the value is the value that occurs
in the first map that contains the key.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(@Nullable Object key) boolean
containsValue
(@Nullable Object value) entrySet()
@Nullable V
boolean
isEmpty()
keySet()
static <K,
V> CompositeMap<K, V> Creates a CompositeMap.void
int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
CompositeMap
-
-
Method Details
-
of
Creates a CompositeMap. -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-