Java org.springframework.data.domain Page fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.domain Page fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.domain Page.

The text is from its open source code.

Implementation

org.springframework.data.domain.Page has the following implementations.
Click this link to see all its implementation.

Method

Pageempty()
Creates a new empty Page .
voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
ListgetContent()
Returns the page content as List .
intgetNumber()
Returns the number of the current Slice .
intgetNumberOfElements()
Returns the number of elements currently on this Slice .
intgetSize()
Returns the size of the Slice .
SortgetSort()
Returns the sorting parameters for the Slice .
longgetTotalElements()
Returns the total amount of elements.
intgetTotalPages()
Returns the number of total pages.
booleanhasContent()
Returns whether the Slice has content at all.
booleanhasNext()
Returns if there is a next Slice .
booleanhasPrevious()
Returns if there is a previous Slice .
booleanisFirst()
Returns whether the current Slice is the first one.
booleanisLast()
Returns whether the current Slice is the last one.
Iteratoriterator()
Returns an iterator over elements of type T .
Pagemap(Function converter)
Returns a new Page with the content of the current one mapped by the given Function .
PageablenextPageable()
Returns the Pageable to request the next Slice .