Package org.apache.calcite.util
Class ImmutableNullableMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.apache.calcite.util.ImmutableNullableMap<K,V>
- Type Parameters:
K
- Key typeV
- Value type
- All Implemented Interfaces:
Map<K,
V>
An immutable map that may contain null values.
If the map cannot contain null values, use ImmutableMap
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
copyOf
Returns an immutable map containing the given elements.Behavior is as
ImmutableMap.copyOf(Iterable)
except that this map allows nulls. -
copyOf
Returns an immutable navigable map containing the given entries.Behavior is as
ImmutableSortedMap.copyOf(Map)
except that this map allows nulls.
-