D - type of the data.public class MarkPage<D> extends Page<MarkPageRequest<D>,D>
MarkPageRequest
holding the marker and the direction to navigate. This scheme is different
than paging using Offsets due to the nature of data storage in NOSQL DB.| Constructor and Description |
|---|
MarkPage(MarkPageRequest<D> pageRequest,
List<D> data)
Creates a data page.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MarkPage<T> |
convert(Converter<D,T> converter)
Converts a page to a different data type.
|
static <T> MarkPage<T> |
emptyPage()
Returns the empty page (immutable).
|
MarkPageRequest<D> |
getNextPageRequest()
Creates a request for the next page.
|
MarkPageRequest<D> |
getPreviousPageRequest()
Creates a request for the previous page.
|
getData, getRequest, isEmpty, toStringpublic MarkPage(MarkPageRequest<D> pageRequest, List<D> data)
pageRequest - request that generated this page.data - page's data.public static <T> MarkPage<T> emptyPage()
public <T> MarkPage<T> convert(Converter<D,T> converter)
converter - converter.public MarkPageRequest<D> getNextPageRequest()
null otherwise.public MarkPageRequest<D> getPreviousPageRequest()
null otherwise.Copyright © 2014. All Rights Reserved.