E - The underlying entity type.public class PaginableEntity<E> extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentPageIndex |
protected int |
currentPageSize |
protected List<E> |
entries |
protected String |
errorMessage |
protected Boolean |
hasError |
protected Boolean |
isLastPageAvailable |
protected Boolean |
isNextPageAvailable |
protected Boolean |
isPaginable |
protected Boolean |
isPreviousPageAvailable |
protected Boolean |
isSortable |
protected int |
maxPageSize |
protected int |
numberOfPages |
protected int |
pageCount |
protected int |
pageIndex |
protected int |
pageSize |
protected int |
resultsCount |
protected int |
totalSize |
entityType| Constructor and Description |
|---|
PaginableEntity(String entityType) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentPageIndex() |
int |
getCurrentPageSize() |
List<E> |
getEntries() |
E |
getEntry(int index) |
String |
getErrorMessage() |
int |
getMaxPageSize() |
int |
getNumberOfPages() |
int |
getPageCount() |
int |
getPageIndex() |
int |
getPageSize() |
int |
getResultsCount() |
int |
getTotalSize() |
boolean |
hasError() |
boolean |
isLastPageAvailable() |
boolean |
isNextPageAvailable() |
boolean |
isPaginable() |
boolean |
isPreviousPageAvailable() |
boolean |
isSortable() |
static boolean |
isTrue(Boolean bool) |
int |
size() |
Stream<E> |
streamEntries() |
getEntityTypeprotected int resultsCount
protected int pageSize
protected int maxPageSize
protected int currentPageSize
protected int currentPageIndex
protected int numberOfPages
protected int totalSize
protected int pageIndex
protected int pageCount
protected Boolean isPaginable
protected Boolean isPreviousPageAvailable
protected Boolean isNextPageAvailable
protected Boolean isLastPageAvailable
protected Boolean isSortable
protected Boolean hasError
protected String errorMessage
public PaginableEntity(String entityType)
public E getEntry(int index)
public int size()
public int getResultsCount()
public int getPageSize()
public int getMaxPageSize()
public int getCurrentPageSize()
public int getCurrentPageIndex()
public int getNumberOfPages()
public int getTotalSize()
public int getPageIndex()
public int getPageCount()
public boolean isPaginable()
public boolean isPreviousPageAvailable()
public boolean isNextPageAvailable()
public boolean isLastPageAvailable()
public boolean isSortable()
public boolean hasError()
public String getErrorMessage()
public static boolean isTrue(Boolean bool)
Copyright © 2018 Nuxeo. All rights reserved.