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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(@Nullable Object key) booleancontainsValue(@Nullable Object value) entrySet()@Nullable VbooleanisEmpty()keySet()static <K,V> CompositeMap<K, V> Creates a CompositeMap.voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-