Class GridCacheValueCollection<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- org.apache.ignite.internal.util.GridSerializableCollection<V>
-
- org.apache.ignite.internal.processors.cache.GridCacheValueCollection<K,V>
-
- All Implemented Interfaces:
Serializable,Iterable<V>,Collection<V>
public class GridCacheValueCollection<K,V> extends GridSerializableCollection<V>
Value collection based on provided entries with all remove operations backed by underlying cache.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCacheValueCollection(GridCacheContext<K,V> ctx, Collection<? extends javax.cache.Cache.Entry<K,V>> c, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(Object o)Iterator<V>iterator()booleanremove(Object o)intsize()-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
GridCacheValueCollection
public GridCacheValueCollection(GridCacheContext<K,V> ctx, Collection<? extends javax.cache.Cache.Entry<K,V>> c, @Nullable @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter)
- Parameters:
ctx- Cache context.c- Entry collection.filter- Filter.
-
-
Method Detail
-
iterator
public Iterator<V> iterator()
- Specified by:
iteratorin interfaceCollection<K>- Specified by:
iteratorin interfaceIterable<K>- Specified by:
iteratorin classAbstractCollection<V>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<K>- Overrides:
clearin classAbstractCollection<V>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<K>- Overrides:
removein classAbstractCollection<V>
-
size
public int size()
- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein classAbstractCollection<V>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<K>- Overrides:
containsin classAbstractCollection<V>
-
-