Example usage for Java org.springframework.data.domain Page fields, constructors, methods, implement or subclass
The text is from its open source code.
Page | empty() Creates a new empty Page . |
void | forEach(Consumer super T> action) Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. |
List | getContent() Returns the page content as List . |
int | getNumber() Returns the number of the current Slice . |
int | getNumberOfElements() Returns the number of elements currently on this Slice . |
int | getSize() Returns the size of the Slice . |
Sort | getSort() Returns the sorting parameters for the Slice . |
long | getTotalElements() Returns the total amount of elements. |
int | getTotalPages() Returns the number of total pages. |
boolean | hasContent() Returns whether the Slice has content at all. |
boolean | hasNext() Returns if there is a next Slice . |
boolean | hasPrevious() Returns if there is a previous Slice . |
boolean | isFirst() Returns whether the current Slice is the first one. |
boolean | isLast() Returns whether the current Slice is the last one. |
Iterator | iterator() Returns an iterator over elements of type T . |
Page | map(Function super T, ? extends U> converter) Returns a new Page with the content of the current one mapped by the given Function . |
Pageable | nextPageable() Returns the Pageable to request the next Slice . |