public class WGStructEntryIterator extends PrefetchingIterator<WGStructEntry> implements SkippingIterator<WGStructEntry>, CountReportingIterator<WGStructEntry>
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the count of all entries in this iterator, only if the database supports effective count retrieval without loading all resources.
|
int |
getCurrentOffset()
Returns the offset of the last retrieved element inside the iterated collection
|
WGDocument |
getParent()
Returns the parent document of the iterated struct entries, either a
WGArea or a WGStructEntry |
int |
skip(int nrOfElements)
Will skip the given number of elements in the queue.
|
hasNext, next, previewNextValue, remove
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<WGStructEntry>
nrOfElements
- Number of elements to skippublic WGDocument getParent()
WGArea
or a WGStructEntry
public int getCount()
getCount
in interface CountReportingIterator<WGStructEntry>
WGAPIException
public int getCurrentOffset()
getCurrentOffset
in interface CountReportingIterator<WGStructEntry>