Class AkashPagedIterator<T>
java.lang.Object
cloud.quasarch.akash.impl.pagination.AkashPagedIterator<T>
- Type Parameters:
T- the type of data
- All Implemented Interfaces:
Iterator<T>
Iterator for
AkashPagedResponse-
Constructor Summary
ConstructorsConstructorDescriptionAkashPagedIterator(Function<String, PagedResponse<T>> dataFetcher, PagedResponse<T> firstPage) constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
AkashPagedIterator
public AkashPagedIterator(Function<String, PagedResponse<T>> dataFetcher, PagedResponse<T> firstPage) constructor- Parameters:
dataFetcher- function that knows how to fetch more datafirstPage- the initial, already loaded, page
-
-
Method Details