|
@@ -56,6 +56,11 @@ public class Page<T> extends Pagination {
|
|
|
this.setOrderByField(orderByField);
|
|
|
}
|
|
|
|
|
|
+ public Page(int current, int size, String orderByField, boolean isAsc) {
|
|
|
+ this(current, size, orderByField);
|
|
|
+ this.setAsc(isAsc);
|
|
|
+ }
|
|
|
+
|
|
|
public List<T> getRecords() {
|
|
|
return records;
|
|
|
}
|