com.sola.instagram.util
Class PaginationIterator<E>

java.lang.Object
  extended by com.sola.instagram.util.PaginationIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class PaginationIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>


Constructor Summary
PaginationIterator(java.util.ArrayList<E> list, java.lang.String nextUri)
           
 
Method Summary
 void fetch()
           
 void handleLoad(JSONArray data)
           
 boolean hasNext()
           
 E next()
           
 boolean paginationComplete()
           
 void remove()
           
 PaginationIterator<E> reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaginationIterator

public PaginationIterator(java.util.ArrayList<E> list,
                          java.lang.String nextUri)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

hasNext

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

next

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

remove

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

fetch

public void fetch()
           throws java.lang.Exception
Throws:
java.lang.Exception

handleLoad

public void handleLoad(JSONArray data)
                throws JSONException
Throws:
JSONException

paginationComplete

public boolean paginationComplete()

reset

public PaginationIterator<E> reset()