T
- type of object being paged, e.g. Transaction
or
Customer
.public class ResourceCollection<T> extends Object implements Iterable<T>
Modifier and Type | Class and Description |
---|---|
private class |
ResourceCollection.PagedIterator<E> |
Modifier and Type | Field and Description |
---|---|
private List<String> |
ids |
private Pager<T> |
pager |
private int |
pageSize |
Constructor and Description |
---|
ResourceCollection(Pager<T> pager,
NodeWrapper response) |
Modifier and Type | Method and Description |
---|---|
T |
getFirst() |
List<String> |
getIds() |
int |
getMaximumSize()
Returns the approximate total size of the collection.
|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ResourceCollection(Pager<T> pager, NodeWrapper response)
public int getMaximumSize()
public T getFirst()
Copyright © 2013-2017. All Rights Reserved.