|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.domain.AbstractPageRequest
public abstract class AbstractPageRequest
Abstract Java Bean implementation of Pageable.
| Constructor Summary | |
|---|---|
AbstractPageRequest(int page,
int size)
Creates a new AbstractPageRequest. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
abstract Pageable |
first()
Returns the Pageable requesting the first page. |
int |
getOffset()
Returns the offset to be taken according to the underlying page and page size. |
int |
getPageNumber()
Returns the page to be returned. |
int |
getPageSize()
Returns the number of items to be returned. |
int |
hashCode()
|
boolean |
hasPrevious()
Returns whether there's a previous Pageable we can access from the current one. |
abstract Pageable |
next()
Returns the Pageable requesting the next Page. |
abstract Pageable |
previous()
Returns the Pageable requesting the previous Page. |
Pageable |
previousOrFirst()
Returns the previous Pageable or the first Pageable if the current one already is the first one. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.domain.Pageable |
|---|
getSort |
| Constructor Detail |
|---|
public AbstractPageRequest(int page,
int size)
AbstractPageRequest. Pages are zero indexed, thus providing 0 for page will return
the first page.
page - must not be less than zero.size - must not be less than one.| Method Detail |
|---|
public int getPageSize()
Pageable
getPageSize in interface Pageablepublic int getPageNumber()
Pageable
getPageNumber in interface Pageablepublic int getOffset()
Pageable
getOffset in interface Pageablepublic boolean hasPrevious()
PageablePageable we can access from the current one. Will return
false in case the current Pageable already refers to the first page.
hasPrevious in interface Pageablepublic Pageable previousOrFirst()
PageablePageable or the first Pageable if the current one already is the first one.
previousOrFirst in interface Pageablepublic abstract Pageable next()
PageablePageable requesting the next Page.
next in interface Pageablepublic abstract Pageable previous()
Pageable requesting the previous Page.
public abstract Pageable first()
PageablePageable requesting the first page.
first in interface Pageablepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||