Modifier and Type | Method and Description |
---|---|
static <T> Page<T> |
empty()
Creates a new empty
Page . |
static <T> Page<T> |
empty(Pageable pageable)
|
long |
getTotalElements()
Returns the total amount of elements.
|
int |
getTotalPages()
Returns the number of total pages.
|
<U> Page<U> |
map(Function<? super T,? extends U> converter)
|
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageable
and, and, and, and, filter, flatMap, get, isEmpty, of, of, of, stream, toList, toSet, toStreamable, toStreamable
forEach, iterator, spliterator
static <T> Page<T> empty()
Page
.empty
in interface Streamable<T>
static <T> Page<T> empty(Pageable pageable)
pageable
- must not be null.int getTotalPages()
long getTotalElements()
<U> Page<U> map(Function<? super T,? extends U> converter)
map
in interface Slice<T>
map
in interface Streamable<T>
converter
- must not be null.Page
with the content of the current one mapped by the given Function
.Stream.map(Function)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.