Package com.braintreegateway
Class PaginatedCollection<T>
- java.lang.Object
-
- com.braintreegateway.PaginatedCollection<T>
-
- Type Parameters:
T- type of object being paged, e.g.MerchantAccount
- All Implemented Interfaces:
Iterable<T>
public class PaginatedCollection<T> extends Object implements Iterable<T>
A collection used to page through results.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classPaginatedCollection.PagedIterator<E>
-
Field Summary
Fields Modifier and Type Field Description private SimplePager<T>pagerprivate intpageSize
-
Constructor Summary
Constructors Constructor Description PaginatedCollection(SimplePager<T> pager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
pager
private SimplePager<T> pager
-
pageSize
private int pageSize
-
-
Constructor Detail
-
PaginatedCollection
public PaginatedCollection(SimplePager<T> pager)
-
-