Interface Page<Entity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Entity>
getContent()
Return container content.int
getItemsNumber()
Returns the number of elements on the page.int
getPageNumber()
Returns the number of the current page.long
getTotalItems()
Returns the total amount of elements.int
getTotalPages()
Returns the number of total pages.boolean
hasContent()
Returns if there is a content exists.boolean
hasNext()
Returns if there is a next page exists.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getPageNumber
int getPageNumber()
Returns the number of the current page. Is always non-negative.- Returns:
- the number of the current page.
-
getItemsNumber
int getItemsNumber()
Returns the number of elements on the page.- Returns:
- the number of elements on the page.
-
getTotalPages
int getTotalPages()
Returns the number of total pages.- Returns:
- the number of total pages
-
getTotalItems
long getTotalItems()
Returns the total amount of elements.- Returns:
- the total amount of elements
-
hasNext
boolean hasNext()
Returns if there is a next page exists.- Returns:
- true if there is a next page exists, otherwise false.
-
hasContent
boolean hasContent()
Returns if there is a content exists.- Returns:
- true if there is a content exists, otherwise false
-
-