Modifier and Type | Method and Description |
---|---|
List<T> |
getContent()
Returns the page content as
List . |
int |
getNumber()
Returns the number of the current page.
|
int |
getNumberOfElements()
Returns the number of elements currently on this page.
|
int |
getSize()
Returns the size of the page.
|
Sort |
getSort()
Returns the sorting parameters for the page.
|
long |
getTotalElements()
Returns the total amount of elements.
|
int |
getTotalPages()
Returns the number of total pages.
|
boolean |
hasContent()
Returns whether the
Page has content at all. |
boolean |
hasNextPage()
Returns if there is a next page.
|
boolean |
hasPreviousPage()
Returns if there is a previous page.
|
boolean |
isFirstPage()
Returns whether the current page is the first one.
|
boolean |
isLastPage()
Returns whether the current page is the last one.
|
Iterator<T> |
iterator() |
Pageable |
nextPageable()
|
Pageable |
previousPageable()
Returns the
Pageable to request the previous page. |
int getNumber()
Page#getTotalPages()
.int getSize()
int getTotalPages()
int getNumberOfElements()
long getTotalElements()
boolean hasPreviousPage()
boolean isFirstPage()
boolean hasNextPage()
boolean isLastPage()
Pageable nextPageable()
Pageable
to request the next Page
. Can be null in case the current
Page
is already the last one. Clients should check hasNextPage()
before calling this method to
make sure they receive a non-null value.Pageable previousPageable()
Pageable
to request the previous page. Can be null in case the current Page
is already the first one. Clients should check hasPreviousPage()
before calling this method make sure
receive a non-null value.boolean hasContent()
Page
has content at all.Sort getSort()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.