public abstract class AbstractPaginationMap<Child extends ListSubject> extends Object implements PaginationMap
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AbstractPaginationMap(String prefix,
int pageSize,
int maxPageSize) |
| Modifier and Type | Method and Description |
|---|---|
AbstractPaginationMap |
buildMap() |
abstract int |
getCount() |
String |
getMarker(Integer page)
Gets the marker text (ie, the name of the last record of the previous page) for navigating
to another page.
|
int |
getNumberOfPages()
Returns the number of pages
|
int |
getNumberOfRecords()
Returns the number of records
|
int |
getPageSize()
Returns the page size
|
String |
getPrefix()
Returns the prefix which is used to search the records
|
abstract Collection<Child> |
list(String prefix,
String marker,
int blockSize) |
Collection<Child> |
listAllItems() |
AbstractPaginationMap |
setBlockSize(int blockSize) |
public AbstractPaginationMap(String prefix, int pageSize, int maxPageSize)
public AbstractPaginationMap buildMap()
public abstract Collection<Child> list(String prefix, String marker, int blockSize)
public abstract int getCount()
public Collection<Child> listAllItems()
public String getMarker(Integer page)
PaginationMapgetMarker in interface PaginationMappage - the page to get the appropriate marker forpublic int getNumberOfPages()
PaginationMapgetNumberOfPages in interface PaginationMappublic int getPageSize()
PaginationMapgetPageSize in interface PaginationMappublic int getNumberOfRecords()
PaginationMapgetNumberOfRecords in interface PaginationMappublic String getPrefix()
PaginationMapgetPrefix in interface PaginationMappublic AbstractPaginationMap setBlockSize(int blockSize)
Copyright © 2012-2016 42 BV. All Rights Reserved.