T - the data of which we paginated overpublic interface PaginatedData<T>
extends java.lang.Iterable<T>
NOTE: this interface extends Iterable. The data is retrieved from the "iterator" function. Please implement the iterator with data structure that has order
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCursor(T entity)
get the encoded cursor of the entity
|
boolean |
hasNextPage()
Whether or not this is the last page
|
boolean |
hasPreviousPage()
Whether or not this is the first page
|
boolean hasNextPage()
boolean hasPreviousPage()
java.lang.String getCursor(T entity)
entity - the entity