de.innovationgate.webgate.api
public class WGContentNavigator.Iterator extends PrefetchingIterator<WGContent> implements SkippingIterator<WGContent>
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
int |
getResults() |
WGContent |
next() |
int |
skip(int nrOfElements)
Will skip the given number of elements in the queue.
|
hasNext, previewNextValue, remove
public WGContent next()
next
in interface java.util.Iterator<WGContent>
next
in class PrefetchingIterator<WGContent>
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 int getResults() throws WGAPIException
WGAPIException
public int getIndex()