Package org.cyclos.utils
Interface Page<T>
-
-
Field Summary
Fields Modifier and Type Field Description static StringCURRENT_PAGEstatic intDEFAULT_PAGE_SIZEstatic StringHAS_NEXT_PAGEstatic StringPAGE_COUNTstatic StringPAGE_ITEMSstatic StringPAGE_SIZEstatic StringTOTAL_COUNT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCurrentPage()Returns the number of this page within the totalIntegergetPageCount()Returns the total number of pages.List<T>getPageItems()Returns the page itemsintgetPageSize()Returns the page sizeIntegergetTotalCount()Returns the total number of records.booleanisHasNextPage()Returns whether a next page existsStream<T>stream()Returns a stream with the page items-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Field Detail
-
DEFAULT_PAGE_SIZE
static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
CURRENT_PAGE
static final String CURRENT_PAGE
- See Also:
- Constant Field Values
-
HAS_NEXT_PAGE
static final String HAS_NEXT_PAGE
- See Also:
- Constant Field Values
-
PAGE_COUNT
static final String PAGE_COUNT
- See Also:
- Constant Field Values
-
PAGE_ITEMS
static final String PAGE_ITEMS
- See Also:
- Constant Field Values
-
PAGE_SIZE
static final String PAGE_SIZE
- See Also:
- Constant Field Values
-
TOTAL_COUNT
static final String TOTAL_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentPage
int getCurrentPage()
Returns the number of this page within the total
-
getPageCount
Integer getPageCount()
Returns the total number of pages. If the total count is unknown, returns null.
-
getPageSize
int getPageSize()
Returns the page size
-
getTotalCount
Integer getTotalCount()
Returns the total number of records. If the total count is unknown, returns null.
-
isHasNextPage
boolean isHasNextPage()
Returns whether a next page exists
-
-