public class PaginationResultTo extends AbstractTo
Modifier and Type | Field and Description |
---|---|
private int |
page |
private static long |
serialVersionUID
UID for serialization.
|
private Integer |
size |
private Long |
total |
Constructor and Description |
---|
PaginationResultTo()
The constructor.
|
PaginationResultTo(PaginationTo pagination,
Long total)
Constructor expecting an existing
pagination criteria and the total number of results found. |
Modifier and Type | Method and Description |
---|---|
int |
getPage() |
Integer |
getSize() |
Long |
getTotal() |
void |
setPage(int page) |
void |
setSize(Integer size) |
void |
setTotal(Long total) |
protected void |
toString(StringBuilder buffer) |
toString
private static final long serialVersionUID
private int page
getPage()
private Long total
getTotal()
public PaginationResultTo()
public PaginationResultTo(PaginationTo pagination, Long total)
pagination criteria
and the total number of results found.pagination
- is an existing pagination criteria
.total
- is the total number of results found without pagination.public Integer getSize()
public void setSize(Integer size)
size
- the size of a page.public int getPage()
public void setPage(int page)
page
- the current page. Must be greater than 0.public Long getTotal()
public void setTotal(Long total)
total
- the total number of entitiesprotected void toString(StringBuilder buffer)
toString
in class AbstractTo
Copyright © 2014–2016 OASP-Team. All rights reserved.