public abstract class WGAbstractResultSetIterator<T> extends de.innovationgate.utils.PrefetchingIterator<WGContent> implements de.innovationgate.utils.SkippingIterator<WGContent>, java.io.Closeable, de.innovationgate.utils.IteratorWrapper<T>
Constructor and Description |
---|
WGAbstractResultSetIterator(java.util.Iterator<T> resultKeys) |
WGAbstractResultSetIterator(java.util.List<T> resultKeys) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Iterator<T> |
getWrappedIterator() |
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)
de.innovationgate.utils.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 de.innovationgate.utils.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