Class ImmutableNullableMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.apache.calcite.util.ImmutableNullableMap<K,V>
Type Parameters:
K - Key type
V - Value type
All Implemented Interfaces:
Map<K,V>

public abstract class ImmutableNullableMap<K,V> extends AbstractMap<K,V>
An immutable map that may contain null values.

If the map cannot contain null values, use ImmutableMap.

  • Method Details

    • copyOf

      public static <K, V> Map<K,V> copyOf(Map<? extends K,? extends V> map)
      Returns an immutable map containing the given elements.

      Behavior is as ImmutableMap.copyOf(Iterable) except that this map allows nulls.

    • copyOf

      public static <K, V> Map<K,V> copyOf(SortedMap<? extends K,? extends V> map)
      Returns an immutable navigable map containing the given entries.

      Behavior is as ImmutableSortedMap.copyOf(Map) except that this map allows nulls.