All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ning.api.client.action.PagedList Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy