AeroGear Android Library 1.1.0

org.jboss.aerogear.android.pipeline.paging
Interface PagedList<T>

Type Parameters:
T - the data type of the list
All Superinterfaces:
Collection<T>, Iterable<T>, List<T>
All Known Implementing Classes:
WrappingPagedList

public interface PagedList<T>
extends List<T>

This class wraps a result and provides methods for retrieving the next and previous result sets.


Method Summary
 void next(Callback<List<T>> callback)
          Retrieve the next result set.
 void previous(Callback<List<T>> callback)
          Retrieve the previous result set.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

next

void next(Callback<List<T>> callback)
Retrieve the next result set. This method MUST NOT pass data to the callback which can not be used.

Parameters:
callback -

previous

void previous(Callback<List<T>> callback)
Retrieve the previous result set. This method MUST NOT pass data to the callback which can not be used.

Parameters:
callback -

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.