Package com.braintreegateway
Class ResourceCollection<T>
- java.lang.Object
-
- com.braintreegateway.ResourceCollection<T>
-
- Type Parameters:
T- type of object being paged, e.g.TransactionorCustomer.
- All Implemented Interfaces:
Iterable<T>
public class ResourceCollection<T> extends Object implements Iterable<T>
A collection used to page through query or search results.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classResourceCollection.PagedIterator<E>
-
Constructor Summary
Constructors Constructor Description ResourceCollection(Pager<T> pager, NodeWrapper response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetFirst()List<String>getIds()intgetMaximumSize()Returns the approximate total size of the collection.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
-
-
-
-
Constructor Detail
-
ResourceCollection
public ResourceCollection(Pager<T> pager, NodeWrapper response)
-
-
Method Detail
-
getMaximumSize
public int getMaximumSize()
Returns the approximate total size of the collection.- Returns:
- Approximate size of collection
-
getFirst
public T getFirst()
-
-