Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.Serializable;
- import java.util.ArrayList;
- import java.util.List;
- public class ResultList<T> implements Serializable {
- private static final long serialVersionUID = 1L;
- private Long total;
- private int page;
- private int count;
- private List<T> results;
- public ResultList() {
- total = new Long(0);
- }
- public void setTotal(Long total) {
- this.total = total;
- this.results = new ArrayList<T>();
- }
- public void setPage(int page) {
- this.page = page;
- }
- public void setCount(int count) {
- this.count = count;
- }
- public void setResults(List<T> results) {
- this.results = results;
- }
- public Long getTotal() {
- return total;
- }
- public int getPage() {
- return page;
- }
- public int getCount() {
- return count;
- }
- public List<T> getResults() {
- return results;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement