| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED_PAGE_SIZE |
| Constructor and Description |
|---|
PageContext(int pageNumber,
int pageSize,
Iterable<Order> orders) |
PageContext(int pageNumber,
int pageSize,
Order... orders) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getEnd()
If this page context is
limited, then this returns getStart() + pageSize. |
List<Order> |
getOrder()
This list of ordering fields.
|
int |
getPageNumber() |
int |
getPageSize()
The associated
Page objects should contain at most this number of elements. |
int |
getStart()
This trivially translates to
pageNumber * pageSize. |
int |
hashCode() |
boolean |
isLimited()
Page size less then zero represents no limit on the size of the page.
|
String |
toString() |
public static final int UNLIMITED_PAGE_SIZE
public PageContext(int pageNumber,
int pageSize,
Order... orders)
public int getPageNumber()
public int getPageSize()
Page objects should contain at most this number of elements.public int getStart()
pageNumber * pageSize.public int getEnd()
limited, then this returns getStart() + pageSize. If this
page context IS unlimited, Integer.MAX_VALUE is returned.public boolean isLimited()
public List<Order> getOrder()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.