Interface KeysetAwarePage<T>
- Type Parameters:
T- Element type.
- All Superinterfaces:
Iterable<T>,KeysetAwareSlice<T>,Page<T>,Slice<T>
Like
Page but contains keyset information.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptioncom.blazebit.persistence.KeysetPageReturns the keyset page associated to the results of this page.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.blazebit.persistence.deltaspike.data.Page
getTotalElements, getTotalPagesMethods inherited from interface com.blazebit.persistence.deltaspike.data.Slice
getContent, getNumber, getNumberOfElements, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast
-
Method Details
-
getKeysetPage
com.blazebit.persistence.KeysetPage getKeysetPage()Returns the keyset page associated to the results of this page.- Specified by:
getKeysetPagein interfaceKeysetAwareSlice<T>- Returns:
- The keyset page
-
currentPageable
KeysetPageable currentPageable()Description copied from interface:Slice- Specified by:
currentPageablein interfaceKeysetAwareSlice<T>- Specified by:
currentPageablein interfaceSlice<T>- Returns:
- The Pageable for the current Slice
-
nextPageable
KeysetPageable nextPageable()Description copied from interface:SliceReturns thePageablethat can be used to request the next Slice. ReturnsnullifSlice.hasNext()returnsfalse.- Specified by:
nextPageablein interfaceKeysetAwareSlice<T>- Specified by:
nextPageablein interfaceSlice<T>- Returns:
- The Pageable for the next Slice, or
nullif this is the last Slice
-
previousPageable
KeysetPageable previousPageable()Description copied from interface:SliceReturns thePageablethat can be used to request the previous Slice. ReturnsnullifSlice.hasPrevious()returnsfalse.- Specified by:
previousPageablein interfaceKeysetAwareSlice<T>- Specified by:
previousPageablein interfaceSlice<T>- Returns:
- The Pageable for the previous Slice, or
nullif this is the first Slice
-