父类有个结构体长红框这样
public class Pageable<T> implements POJO {
private static final long serialVersionUID = -410571025796786344L;
private int pageSize;
private int page;
private Collection<T> data;
private int length;
public Pageable() {
}
public Pageable(int page, int pageSize, int length, Collection<T> data) {
this.page = page;
this.pageSize = pageSize;
this.length = length;
this.data = data;
}
子类 page pagesize data 都没有,应该怎么办?
改了之后还是红字了。。
public class NewPageable<T> extends Pageable<T> {
private int total;
public NewPageable(int page, int pageSize, int total, Collection<T> data) {
super(page, pageSize, data);
this.total = total;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
}
拉丁的传说
相关分类