public class WGStructEntryIterator extends de.innovationgate.utils.PrefetchingIterator<WGStructEntry> implements de.innovationgate.utils.SkippingIterator<WGStructEntry>, de.innovationgate.utils.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)
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<WGStructEntry>
nrOfElements
- Number of elements to skippublic WGDocument getParent()
WGArea
or a WGStructEntry
public int getCount()
getCount
in interface de.innovationgate.utils.CountReportingIterator<WGStructEntry>
WGAPIException
public int getCurrentOffset()
getCurrentOffset
in interface de.innovationgate.utils.CountReportingIterator<WGStructEntry>