Class PredicateSetView<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.PredicateSetView<K,V>
-
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
Serializable,Map<K,V>
public class PredicateSetView<K,V> extends GridSerializableMap<K,V>
Light-weight view on given map with provided preds and mapping.- 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 PredicateSetView(Set<K> set, IgniteClosure<? super K,V> clo, 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)Vremove(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
-
PredicateSetView
public PredicateSetView(Set<K> set, IgniteClosure<? super K,V> clo, IgnitePredicate<? super K>... preds)
- Parameters:
set- Input collection.clo- Mapping closure, that maps key to value.preds- Optional predicates to filter input collection. If predicates are not provided - all elements will be in
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>- Overrides:
containsKeyin classAbstractMap<K,V>
-
-