public abstract class PagedIterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Iterable that returns PagedIterator| Constructor and Description |
|---|
PagedIterable() |
| Modifier and Type | Method and Description |
|---|---|
abstract PagedIterator<T> |
_iterator(int pageSize) |
java.util.List<T> |
asList()
Eagerly walk
Iterable and return the result in a list. |
java.util.Set<T> |
asSet()
Eagerly walk
Iterable and return the result in a set. |
PagedIterator<T> |
iterator() |
PagedIterable<T> |
withPageSize(int size)
Sets the pagination size.
|
public PagedIterable<T> withPageSize(int size)
When set to non-zero, each API call will retrieve this many entries.
public final PagedIterator<T> iterator()
iterator in interface java.lang.Iterable<T>public abstract PagedIterator<T> _iterator(int pageSize)
public java.util.List<T> asList()
Iterable and return the result in a list.public java.util.Set<T> asSet()
Iterable and return the result in a set.Copyright © 2016. All Rights Reserved.