Constructor and Description |
---|
Page(List<T> rows,
int totalSize,
int pageSize,
PageRequest previousPageRequest,
PageRequest nextPageRequest) |
Modifier and Type | Method and Description |
---|---|
String |
getNextLink() |
PageRequest |
getNextPageRequest() |
int |
getPageSize() |
String |
getPreviousLink() |
PageRequest |
getPreviousPageRequest() |
List<T> |
getRows()
Exists mainly for providing compatibility with the c:forEach in jstl (1.2) as it cannot handle java.lang.Iterable
|
int |
getTotalSize() |
boolean |
isHasNext()
Has a silly name in order to conform with the java beans naming convention
|
boolean |
isHasPrevious()
Has a silly name in order to conform with the java beans naming convention
|
Iterator<T> |
iterator() |
int |
size() |
public Page(List<T> rows, int totalSize, int pageSize, PageRequest previousPageRequest, PageRequest nextPageRequest)
public List<T> getRows()
public boolean isHasNext()
public boolean isHasPrevious()
public int getTotalSize()
public int getPageSize()
public String getNextLink()
IllegalStateException
- of no next page existsPageRequest
public PageRequest getNextPageRequest()
public PageRequest getPreviousPageRequest()
public String getPreviousLink()
IllegalStateException
- of no previous page existsPageRequest
public int size()
Copyright © 2013. All Rights Reserved.