public class WGHierarchyContentIterator extends PrefetchingIterator<WGContent> implements SkippingIterator<WGContent>, 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, removepublic WGHierarchyContentIterator(WGStructEntryIterator structs, java.lang.String language)
public int getCount()
getCount in interface CountReportingIterator<WGContent>public int skip(int nrOfElements)
SkippingIteratorIterator.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 getCurrentOffset()
getCurrentOffset in interface CountReportingIterator<WGContent>