Interface Page<T>
- Type Parameters:
T- The element type
- All Known Subinterfaces:
KeysetAwarePage<T>
A sublist of a list of objects, heavily inspired by Spring Data's
Page.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the total amount of elements.intReturns the number of total pages.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.blazebit.persistence.deltaspike.data.Slice
currentPageable, getContent, getNumber, getNumberOfElements, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextPageable, previousPageable
-
Method Details
-
getTotalPages
int getTotalPages()Returns the number of total pages.- Returns:
- The number of total pages
-
getTotalElements
long getTotalElements()Returns the total amount of elements.- Returns:
- The total amount of elements
-