Class AbstractCloseableIteratorCollection<O,K,V>

java.lang.Object
java.util.AbstractCollection<O>
org.infinispan.commands.read.AbstractCloseableIteratorCollection<O,K,V>
All Implemented Interfaces:
Iterable<O>, Collection<O>, org.infinispan.commons.util.CloseableIteratorCollection<O>
Direct Known Subclasses:
ValueCacheCollection

public abstract class AbstractCloseableIteratorCollection<O,K,V> extends AbstractCollection<O> implements org.infinispan.commons.util.CloseableIteratorCollection<O>
Abstract collection that uses an underlying Cache instance to do various operations. This is useful for a backing collection such as entrySet, keySet or values from the Map interface. Implementors only need to implement individual methods such as Collection.contains(Object), Collection.remove(Object) and CloseableIteratorCollection.iterator(). The Collection.add(Object) by default will throw an UnsupportedOperationException.

Since:
7.0
Author:
wburns