|
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
org.springframework.data.domain.PageRequest
public class PageRequest
Basic Java Bean implementation of Pageable.
| Constructor Summary | |
|---|---|
PageRequest(int page,
int size)
Creates a new PageRequest. |
|
PageRequest(int page,
int size,
Sort.Direction direction,
String... properties)
Creates a new PageRequest with sort parameters applied. |
|
PageRequest(int page,
int size,
Sort sort)
Creates a new PageRequest with sort parameters applied. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Pageable |
first()
Returns the Pageable requesting the first page. |
Sort |
getSort()
Returns the sorting parameters. |
int |
hashCode()
|
Pageable |
next()
Returns the Pageable requesting the next Page. |
PageRequest |
previous()
Returns the Pageable requesting the previous Page. |
String |
toString()
|
| Methods inherited from class org.springframework.data.domain.AbstractPageRequest |
|---|
getOffset, getPageNumber, getPageSize, hasPrevious, previousOrFirst |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageRequest(int page,
int size)
PageRequest. Pages are zero indexed, thus providing 0 for page will return the first
page.
page - zero-based page index.size - the size of the page to be returned.
public PageRequest(int page,
int size,
Sort.Direction direction,
String... properties)
PageRequest with sort parameters applied.
page - zero-based page index.size - the size of the page to be returned.direction - the direction of the Sort to be specified, can be null.properties - the properties to sort by, must not be null or empty.
public PageRequest(int page,
int size,
Sort sort)
PageRequest with sort parameters applied.
page - zero-based page index.size - the size of the page to be returned.sort - can be null.| Method Detail |
|---|
public Sort getSort()
Pageable
public Pageable next()
PageablePageable requesting the next Page.
next in interface Pageablenext in class AbstractPageRequestpublic PageRequest previous()
AbstractPageRequestPageable requesting the previous Page.
previous in class AbstractPageRequestpublic Pageable first()
PageablePageable requesting the first page.
first in interface Pageablefirst in class AbstractPageRequestpublic boolean equals(Object obj)
equals in class AbstractPageRequestpublic int hashCode()
hashCode in class AbstractPageRequestpublic String toString()
toString in class Object
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||