public abstract class WGAbstractResultSetIterator<T> extends PrefetchingIterator<WGContent> implements SkippingIterator<WGContent>, java.io.Closeable
Constructor and Description |
---|
WGAbstractResultSetIterator(java.util.Iterator<T> resultKeys) |
WGAbstractResultSetIterator(java.util.List<T> resultKeys) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
skip(int nrOfElements)
Will skip the given number of elements in the queue.
|
hasNext, next, previewNextValue, remove
public WGAbstractResultSetIterator(java.util.List<T> resultKeys)
public WGAbstractResultSetIterator(java.util.Iterator<T> resultKeys)
public int skip(int nrOfElements)
SkippingIterator
Iterator.next()
method will return the element immediately after the last skipped one.
Must be called before any iterating methods (Iterator.next()
Iterator.hasNext()
) have been used. Otherwise an IllegalStateException
is thrown.skip
in interface SkippingIterator<WGContent>
nrOfElements
- Number of elements to skippublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException