public abstract class AbstractPaginationMap<Child extends ListSubject> extends java.lang.Object implements PaginationMap
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AbstractPaginationMap(java.lang.String prefix,
int pageSize,
int maxPageSize) |
| Modifier and Type | Method and Description |
|---|---|
AbstractPaginationMap |
buildMap() |
abstract int |
getCount() |
java.lang.String |
getMarker(java.lang.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
|
java.lang.String |
getPrefix()
Returns the prefix which is used to search the records
|
abstract java.util.Collection<Child> |
list(java.lang.String prefix,
java.lang.String marker,
int blockSize) |
java.util.Collection<Child> |
listAllItems() |
AbstractPaginationMap |
setBlockSize(int blockSize) |
public AbstractPaginationMap(java.lang.String prefix,
int pageSize,
int maxPageSize)
public AbstractPaginationMap buildMap()
public abstract java.util.Collection<Child> list(java.lang.String prefix, java.lang.String marker, int blockSize)
public abstract int getCount()
public java.util.Collection<Child> listAllItems()
public java.lang.String getMarker(java.lang.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 java.lang.String getPrefix()
PaginationMapgetPrefix in interface PaginationMappublic AbstractPaginationMap setBlockSize(int blockSize)
Copyright © 2012-2020 42 BV. All Rights Reserved.