com.sola.instagram.util.PaginatedCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instagram-java Show documentation
Show all versions of instagram-java Show documentation
Java wrapper for Instagram API v1.
package com.sola.instagram.util;
import java.util.ArrayList;
import java.util.Iterator;
public class PaginatedCollection implements Iterable{
ArrayList list;
PaginationIterator iterator;
public PaginatedCollection(ArrayList list, PaginationIterator iterator){
this.list = list;
this.iterator = iterator;
}
public Iterator iterator() {
return iterator.reset();
}
public int size() {
return list.size();
}
public E get(int index) {
return list.get(index);
}
}