public class PageRequest extends Object implements Serializable
Constructor and Description |
---|
PageRequest(int pageSize)
Creates a request for the first page.
|
PageRequest(int pageIndex,
int pageSize)
Creates a page request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getPageIndex()
Gets the page index.
|
int |
getPageSize()
Gets the page size (maximum number of data items per page).
|
int |
hashCode() |
public PageRequest(int pageSize)
pageSize
- page size (maximum number of data items per page).public PageRequest(int pageIndex, int pageSize) throws IllegalArgumentException
pageIndex
- page index.pageSize
- page size (maximum number of data items per page).IllegalArgumentException
- if pageIndex
is less than zero.Copyright © 2015. All Rights Reserved.