Interface Page<T>
- Type Parameters:
T- The element type
- All Known Subinterfaces:
KeysetAwarePage<T>
public interface Page<T> extends Slice<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 Type Method Description longgetTotalElements()Returns the total amount of elements.intgetTotalPages()Returns the number of total pages.Methods 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
-