PageListResp.java
2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.example.demo;
import java.util.List;
/**
* 描述:
* Created by pangjie@yoho.cn on 2017/6/20.
*/
public class PageListResp<T> {
private int iTotalRecords;
private int iTotalDisplayRecords;
private int length;
/**
* 数据
*/
private List<T> aaData;
private PageListResp(Builder builder) {
setiTotalRecords(builder.iTotalRecords);
setiTotalDisplayRecords(builder.iTotalDisplayRecords);
setLength(builder.length);
setAaData(builder.aaData);
}
public static Builder newBuilder() {
return new Builder();
}
public int getiTotalRecords() {
return iTotalRecords;
}
public void setiTotalRecords(int iTotalRecords) {
this.iTotalRecords = iTotalRecords;
}
public int getiTotalDisplayRecords() {
return iTotalDisplayRecords;
}
public void setiTotalDisplayRecords(int iTotalDisplayRecords) {
this.iTotalDisplayRecords = iTotalDisplayRecords;
}
public List<T> getAaData() {
return aaData;
}
public void setAaData(List<T> aaData) {
this.aaData = aaData;
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
public static final class Builder<T> {
private int iTotalRecords;
private int iTotalDisplayRecords;
private int length;
private List<T> aaData;
private Builder() {
}
public Builder iTotalRecords(int val) {
iTotalRecords = val;
return this;
}
public Builder iTotalDisplayRecords(int val) {
iTotalDisplayRecords = val;
return this;
}
public Builder length(int val) {
length = val;
return this;
}
public Builder aaData(List<T> val) {
aaData = val;
return this;
}
public PageListResp build() {
return new PageListResp(this);
}
}
}