Package org.apache.calcite.linq4j
Class EnumerableDefaults.WrapMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.calcite.linq4j.EnumerableDefaults.WrapMap<K,V>
-
- Type Parameters:
K- key typeV- value type
- All Implemented Interfaces:
Map<K,V>
- Enclosing class:
- EnumerableDefaults
private static class EnumerableDefaults.WrapMap<K,V> extends AbstractMap<K,V>
Map that wraps each value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private EqualityComparer<K>comparerprivate Map<EnumerableDefaults.Wrapped<K>,V>map
-
Constructor Summary
Constructors Modifier Constructor Description protectedWrapMap(Function0<Map<EnumerableDefaults.Wrapped<K>,V>> mapProvider, EqualityComparer<K> comparer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)Set<Map.Entry<K,V>>entrySet()Vget(Object key)Vput(K key, V value)Vremove(Object key)Collection<V>values()private EnumerableDefaults.Wrapped<K>wrap(K key)-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, entry, forEach, getOrDefault, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
map
private final Map<EnumerableDefaults.Wrapped<K>,V> map
-
comparer
private final EqualityComparer<K> comparer
-
-
Constructor Detail
-
WrapMap
protected WrapMap(Function0<Map<EnumerableDefaults.Wrapped<K>,V>> mapProvider, EqualityComparer<K> comparer)
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>- Overrides:
containsKeyin classAbstractMap<K,V>
-
wrap
private EnumerableDefaults.Wrapped<K> wrap(K key)
-
clear
public void clear()
-
values
public Collection<V> values()
-
-