Interface IPage<T>
- Type Parameters:
T- the type of elements that this page contains
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
Page
A page is an iterable object that contains the slice of data in specified range.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the page content.intReturns the number of elements this page contains.intReturns the number of current page.Returns the pageable object are associated with this page.intgetSize()Returns the size of this page.longReturns the total amount of elements.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getSize
int getSize()Returns the size of this page.- Returns:
- the size of this page
-
getNumber
int getNumber()Returns the number of current page.- Returns:
- the number of current page
-
getContentSize
int getContentSize()Returns the number of elements this page contains.- Returns:
- he number of elements this page contains
-
getTotalSize
long getTotalSize()Returns the total amount of elements.- Returns:
- the total amount of elements
-
getContent
Returns the page content.- Returns:
- the page content
-
getPageable
IPageable getPageable()Returns the pageable object are associated with this page.- Returns:
- associated pageable object
-