Package com.palantir.util.paging
Class SimpleTokenBackedResultsPage<T,TOKEN>
- java.lang.Object
-
- com.palantir.util.paging.SimpleResultsPage<T>
-
- com.palantir.util.paging.SimpleTokenBackedResultsPage<T,TOKEN>
-
- Type Parameters:
T
-TOKEN
-
- All Implemented Interfaces:
BasicResultsPage<T>
,TokenBackedBasicResultsPage<T,TOKEN>
,Serializable
public class SimpleTokenBackedResultsPage<T,TOKEN> extends SimpleResultsPage<T> implements TokenBackedBasicResultsPage<T,TOKEN>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleTokenBackedResultsPage(TOKEN token, Iterable<T> chunks)
SimpleTokenBackedResultsPage(TOKEN token, Iterable<T> chunks, boolean moreAvailable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,TOKEN>
SimpleTokenBackedResultsPage<T,TOKEN>create(TOKEN token, Iterable<T> chunks)
static <T,TOKEN>
SimpleTokenBackedResultsPage<T,TOKEN>create(TOKEN token, Iterable<T> chunks, boolean moreAvailable)
boolean
equals(Object obj)
TOKEN
getTokenForNextPage()
Gets the token for the next page.int
hashCode()
String
toString()
-
Methods inherited from class com.palantir.util.paging.SimpleResultsPage
create, create, emptyPage, getResults, moreResultsAvailable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.palantir.util.paging.BasicResultsPage
getResults, moreResultsAvailable
-
-
-
-
Method Detail
-
create
public static <T,TOKEN> SimpleTokenBackedResultsPage<T,TOKEN> create(TOKEN token, Iterable<T> chunks)
-
create
public static <T,TOKEN> SimpleTokenBackedResultsPage<T,TOKEN> create(TOKEN token, Iterable<T> chunks, boolean moreAvailable)
-
getTokenForNextPage
public TOKEN getTokenForNextPage()
Description copied from interface:TokenBackedBasicResultsPage
Gets the token for the next page. This method may return null if you are paging from the beginning of time and there are no changes.- Specified by:
getTokenForNextPage
in interfaceTokenBackedBasicResultsPage<T,TOKEN>
- Returns:
- a TOKEN
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleResultsPage<T>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classSimpleResultsPage<T>
-
toString
public String toString()
- Overrides:
toString
in classSimpleResultsPage<T>
-
-