com.ning.api.client.action.PagedList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ning-api-java Show documentation
Show all versions of ning-api-java Show documentation
Java client library for accessing Ning external API
package com.ning.api.client.action;
import java.util.*;
import com.ning.api.client.access.Anchor;
import com.ning.api.client.item.ContentItem;
/**
* Accessor object for traversing sequences of items ("lists").
* Unlike generic {@link java.util.Iterator} accessor (which is
* the main alternative), this object makes chunking explicit,
* such that each call will result in corresponding list
* request being sent. It is also possible to go back and forth,
* as well as use different chunk (page) sizes for access.
*/
public interface PagedList>
{
public abstract List next(int pageSize);
public abstract List previous(int pageSize);
public abstract Anchor position();
}