org.kohsuke.github
Class PagedIterator<T>
java.lang.Object
org.kohsuke.github.PagedIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public abstract class PagedIterator<T>
- extends Object
- implements Iterator<T>
Iterator over a pagenated data source.
Aside from the normal iterator operation, this method exposes nextPage()
that allows the caller to retrieve items per page.
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrapUp
protected abstract void wrapUp(T[] page)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<T>
next
public T next()
- Specified by:
next in interface Iterator<T>
remove
public void remove()
- Specified by:
remove in interface Iterator<T>
nextPage
public List<T> nextPage()
- Gets the next page worth of data.
Copyright © 2012. All Rights Reserved.