Class PredicateMapView<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.ignite.internal.util.GridSerializableMap<K,V>
-
- org.apache.ignite.internal.util.lang.gridfunc.PredicateMapView<K,V>
-
- Type Parameters:
K- Type of the key.V- Type of the value.
- All Implemented Interfaces:
Serializable,Map<K,V>
public class PredicateMapView<K,V> extends GridSerializableMap<K,V>
Light-weight view on given map with provided predicate.- 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 PredicateMapView(Map<K,V> map, 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,V>>entrySet()Vget(Object key)booleanisEmpty()Vput(K key, V val)-
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, keySet, 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
-
-
-
-
Constructor Detail
-
PredicateMapView
public PredicateMapView(Map<K,V> map, IgnitePredicate<? super K>... preds)
- Parameters:
map- Input map that serves as a base for the view.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,V>- Overrides:
containsKeyin classAbstractMap<K,V>
-
-