public class WGHierarchyContentIterator extends de.innovationgate.utils.PrefetchingIterator<WGContent> implements de.innovationgate.utils.SkippingIterator<WGContent>, de.innovationgate.utils.CountReportingIterator<WGContent>
Constructor and Description |
---|
WGHierarchyContentIterator(WGStructEntryIterator structs,
java.lang.String language) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the count of pages over which this iterator iterates and retrieves contents for.
|
int |
getCurrentOffset()
Returns the offset of the last retrieved element inside the iterated collection
This also includes pages that were skipped because they have no released content in the current language
|
int |
skip(int nrOfElements)
Will skip the given number of elements in the queue.
|
hasNext, next, previewNextValue, remove
public WGHierarchyContentIterator(WGStructEntryIterator structs, java.lang.String language)
public int getCount()
getCount
in interface de.innovationgate.utils.CountReportingIterator<WGContent>
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 int getCurrentOffset()
getCurrentOffset
in interface de.innovationgate.utils.CountReportingIterator<WGContent>