public class SolrPageRequest extends Object implements org.springframework.data.domain.Pageable
Pageable allowing zero sized pages.| Constructor and Description |
|---|
SolrPageRequest(int page,
int size)
Creates a new
SolrPageRequest. |
SolrPageRequest(int page,
int size,
org.springframework.data.domain.Sort.Direction direction,
String... properties)
Creates a new
SolrPageRequest with sort parameters applied. |
SolrPageRequest(int page,
int size,
org.springframework.data.domain.Sort sort)
Creates a new
SolrPageRequest with sort parameters applied. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.springframework.data.domain.Pageable |
first() |
int |
getOffset() |
int |
getPageNumber() |
int |
getPageSize() |
org.springframework.data.domain.Sort |
getSort() |
int |
hashCode() |
boolean |
hasPrevious() |
org.springframework.data.domain.Pageable |
next() |
org.springframework.data.domain.Pageable |
previous()
Returns the
Pageable requesting the previous Page. |
org.springframework.data.domain.Pageable |
previousOrFirst() |
String |
toString() |
public SolrPageRequest(int page,
int size)
SolrPageRequest. Pages are zero indexed.page - zero-based page index.size - the size of the page to be returned.public SolrPageRequest(int page,
int size,
org.springframework.data.domain.Sort.Direction direction,
String... properties)
SolrPageRequest 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 SolrPageRequest(int page,
int size,
org.springframework.data.domain.Sort sort)
SolrPageRequest with sort parameters applied.page - zero-based page index.size - the size of the page to be returned.sort - can be null.public int getPageNumber()
getPageNumber in interface org.springframework.data.domain.Pageablepublic int getPageSize()
getPageSize in interface org.springframework.data.domain.Pageablepublic int getOffset()
getOffset in interface org.springframework.data.domain.Pageablepublic org.springframework.data.domain.Sort getSort()
getSort in interface org.springframework.data.domain.Pageablepublic org.springframework.data.domain.Pageable next()
next in interface org.springframework.data.domain.Pageablepublic org.springframework.data.domain.Pageable previousOrFirst()
previousOrFirst in interface org.springframework.data.domain.Pageablepublic org.springframework.data.domain.Pageable first()
first in interface org.springframework.data.domain.Pageablepublic boolean hasPrevious()
hasPrevious in interface org.springframework.data.domain.Pageablepublic org.springframework.data.domain.Pageable previous()
Pageable requesting the previous Page.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.