AeroGear Android Library 1.1.0

org.jboss.aerogear.android.impl.pipeline.paging
Class WrappingPagedList<T>

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingCollection<E>
          extended by com.google.common.collect.ForwardingList<T>
              extended by org.jboss.aerogear.android.impl.pipeline.paging.WrappingPagedList<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, PagedList<T>

public class WrappingPagedList<T>
extends com.google.common.collect.ForwardingList<T>
implements PagedList<T>

Wraps a resultSet in a ForwardingList and provides paging methods. This class also combines


Constructor Summary
WrappingPagedList(Pipe<T> pipe, List<T> data, ReadFilter nextFilter, ReadFilter previousFilter)
           
 
Method Summary
protected  List<T> delegate()
           
 ReadFilter getNextFilter()
           
 ReadFilter getPreviousFilter()
           
 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 class com.google.common.collect.ForwardingList
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subList
 
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

WrappingPagedList

public WrappingPagedList(Pipe<T> pipe,
                         List<T> data,
                         ReadFilter nextFilter,
                         ReadFilter previousFilter)
Parameters:
pipe -
data -
nextFilter -
previousFilter -
Method Detail

delegate

protected List<T> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingList<T>

next

public void next(Callback<List<T>> callback)
Description copied from interface: PagedList
Retrieve the next result set. This method MUST NOT pass data to the callback which can not be used.

Specified by:
next in interface PagedList<T>

previous

public void previous(Callback<List<T>> callback)
Description copied from interface: PagedList
Retrieve the previous result set. This method MUST NOT pass data to the callback which can not be used.

Specified by:
previous in interface PagedList<T>

getNextFilter

public ReadFilter getNextFilter()

getPreviousFilter

public ReadFilter getPreviousFilter()

AeroGear Android Library 1.1.0

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