Package org.springframework.data.domain
Interface Page<T>
- Type Parameters:
T
-
- All Superinterfaces:
Iterable<T>
,Slice<T>
,Streamable<T>
,Supplier<Stream<T>>
A page is a sublist of a list of objects. It allows gain information about the position of it in the containing
entire list.
- Author:
- Oliver Gierke
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.springframework.data.domain.Slice
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageable
-
Method Details
-
empty
Creates a new emptyPage
.- Returns:
- Since:
- 2.0
-
empty
- Parameters:
pageable
- must not be null.- Returns:
- Since:
- 2.0
-
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
-
map
-