Item - public class PaginatedView<Item> extends AbstractView<Item>
resultList, resultSize, resultViewOffset, resultViewSize| Constructor and Description |
|---|
PaginatedView(List<Item> items,
int pageSize,
long pageIndex)
Constructor.
|
PaginatedView(List<Item> subList,
long subListStart,
long realListSize,
int pageSize,
long pageIndex)
Constructor.
|
PaginatedView(Result<Item> result,
int pageSize,
long pageIndex)
Constructor.
|
PaginatedView(Result<Item> result,
Page page)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPageIndex() |
long |
getPagesCount() |
int |
getPageSize() |
getResultSize, getViewpublic PaginatedView(List<Item> items, int pageSize, long pageIndex)
items - the list of itempageSize - the number of item per pagepageIndex - the page indexpublic PaginatedView(Result<Item> result, int pageSize, long pageIndex)
result - the result containing the list of itempageSize - the number of item per pagepageIndex - the page indexpublic PaginatedView(Result<Item> result, Page page)
result - the result containing the list of itempage - the Pagepublic PaginatedView(List<Item> subList, long subListStart, long realListSize, int pageSize, long pageIndex)
subList - the sub list of itemsubListStart - the first item of the sub listrealListSize - the complete listpageSize - the number of item per pagepageIndex - the page indexCopyright © 2013-2015–2015. All rights reserved.