Interface UnnumberedPageable
- All Superinterfaces:
org.springframework.data.domain.Pageable
- All Known Subinterfaces:
NarrowedPageable
- All Known Implementing Classes:
DefaultNarrowedPageable
,DefaultUnnumberedPageable
public interface UnnumberedPageable
extends org.springframework.data.domain.Pageable
Represents a
Pageable
for which page number are not used. Rather, an implementation
should rely directly on offset. This can be useful in situations where the determination for the
next Pageable.getOffset()
is more complicated than simply multiplying pageNumber and pageSize.- Author:
- Jeff Fischer
-
Method Summary
Methods inherited from interface org.springframework.data.domain.Pageable
first, getOffset, getPageSize, getSort, getSortOr, hasPrevious, isPaged, isUnpaged, next, previousOrFirst, toOptional, toScrollPosition, withPage
-
Method Details
-
getPageNumber
default int getPageNumber()- Specified by:
getPageNumber
in interfaceorg.springframework.data.domain.Pageable
-