Module gg.xp.xivapi

Class XivApiSearchPaginator<X extends XivApiObject>

java.lang.Object
gg.xp.xivapi.pagination.XivApiPaginator<X>
gg.xp.xivapi.pagination.XivApiSearchPaginator<X>
Type Parameters:
X -
All Implemented Interfaces:
Iterator<X>

public final class XivApiSearchPaginator<X extends XivApiObject> extends XivApiPaginator<X>
Raw list iterator. This is a dumb implementation that does not parallelize or readahead. It will request a new page only when the existing page has been exhausted. The XivApiPaginator.hasNext() method may block until the next page has been returned.

This implementation is not thread-safe. It should be accessed only by a single thread.

It is implemented as an iterator-of-iterators, where each page is an iterator, and the combined pagination