T - the type parameterpublic abstract class PagedIterable<T> extends Object implements Iterable<T>
Iterable that returns PagedIterator| Constructor and Description |
|---|
PagedIterable() |
| Modifier and Type | Method and Description |
|---|---|
abstract PagedIterator<T> |
_iterator(int pageSize)
Iterator paged iterator.
|
List<T> |
asList()
Eagerly walk
Iterable and return the result in a list. |
Set<T> |
asSet()
Eagerly walk
Iterable and return the result in a set. |
PagedIterator<T> |
iterator()
Returns an iterator over elements of type
T. |
PagedIterable<T> |
withPageSize(int size)
Sets the pagination size.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic PagedIterable<T> withPageSize(int size)
When set to non-zero, each API call will retrieve this many entries.
size - the size@Nonnull public final PagedIterator<T> iterator()
T.@Nonnull public abstract PagedIterator<T> _iterator(int pageSize)
pageSize - the page sizepublic List<T> asList()
Iterable and return the result in a list.Copyright © 2020. All rights reserved.