Class TransformMapView<K,V1,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.ignite.internal.util.GridSerializableMap<K,V1>
-
- org.apache.ignite.internal.util.lang.gridfunc.TransformMapView<K,V1,V>
-
- Type Parameters:
K- Type of the key.V- Type of the input map value.V1- Type of the output map value.
- All Implemented Interfaces:
Serializable,Map<K,V1>
public class TransformMapView<K,V1,V> extends GridSerializableMap<K,V1>
Light-weight view on given map with provided predicate and clos.- See Also:
- Serialized Form
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description TransformMapView(Map<K,V> map, IgniteClosure<V,V1> clos, IgnitePredicate<? super K>... preds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)@NotNull Set<Map.Entry<K,V1>>entrySet()V1get(Object key)booleanisEmpty()V1put(K key, V1 val)V1remove(Object key)-
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, keySet, putAll, 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
-
-
-
-
Constructor Detail
-
TransformMapView
public TransformMapView(Map<K,V> map, IgniteClosure<V,V1> clos, IgnitePredicate<? super K>... preds)
- Parameters:
map- Input map that serves as a base for the view.clos- Transformer for map value transformation.preds- Optional predicates. If predicates are not provided - all will be in the view.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V1>- Overrides:
containsKeyin classAbstractMap<K,V1>
-
-