com.braintreegateway
Class ResourceCollection.PagedIterator<E>

java.lang.Object
  extended by com.braintreegateway.ResourceCollection.PagedIterator<E>
All Implemented Interfaces:
Iterator<E>
Enclosing class:
ResourceCollection<T>

private class ResourceCollection.PagedIterator<E>
extends Object
implements Iterator<E>


Field Summary
private  List<String> ids
           
private  int index
           
private  List<E> items
           
private  int nextIndexToFetch
           
private  int pageSize
           
private  ResourceCollection<E> resourceCollection
           
 
Constructor Summary
ResourceCollection.PagedIterator(ResourceCollection<E> resourceCollection)
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
private  List<String> nextBatchOfIds()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceCollection

private ResourceCollection<E> resourceCollection

ids

private List<String> ids

pageSize

private int pageSize

index

private int index

nextIndexToFetch

private int nextIndexToFetch

items

private List<E> items
Constructor Detail

ResourceCollection.PagedIterator

public ResourceCollection.PagedIterator(ResourceCollection<E> resourceCollection)
Method Detail

nextBatchOfIds

private List<String> nextBatchOfIds()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>


Copyright © 2013. All Rights Reserved.