Package org.kohsuke.github
Class PagedIterator<T>
- java.lang.Object
-
- org.kohsuke.github.PagedIterator<T>
-
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
Iterator<T>
public abstract class PagedIterator<T> extends Object implements Iterator<T>
Iterator over a paginated data source.Aside from the normal iterator operation, this method exposes
nextPage()that allows the caller to retrieve items per page.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()List<T>nextPage()Gets the next page worth of data.voidremove()protected abstract voidwrapUp(T[] page)Wrap up.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
wrapUp
protected abstract void wrapUp(T[] page)
Wrap up.- Parameters:
page- the page
-
-