T - is the paginated type.public class PageWrapper<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PageWrapper.PageItem |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PAGE_ITEM_DISPLAY |
| Constructor and Description |
|---|
PageWrapper(org.springframework.data.domain.Page<T> page,
String url) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getContent() |
List<PageWrapper.PageItem> |
getItems() |
int |
getNumber() |
int |
getSize() |
long |
getTotalItems() |
int |
getTotalPages() |
String |
getUrl() |
boolean |
isFirstPage() |
boolean |
isHasNextPage() |
boolean |
isHasPreviousPage() |
boolean |
isLastPage() |
void |
setUrl(String url) |
public static final int MAX_PAGE_ITEM_DISPLAY
public long getTotalItems()
public String getUrl()
public void setUrl(String url)
public List<PageWrapper.PageItem> getItems()
public int getNumber()
public int getSize()
public int getTotalPages()
public boolean isFirstPage()
public boolean isLastPage()
public boolean isHasPreviousPage()
public boolean isHasNextPage()
Copyright © 2017. All rights reserved.