src/main/java/com/yuanlrc/base/bean/PageBean.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.yuanlrc.base.bean;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.springframework.stereotype.Component;
/**
* 分页信息封装类
* @author Administrator
*
*/
@Component
public class PageBean<T> {
private int currentPage = 1;//当前页码
private int pageSize = 10;//每页显示数量,默认十条
private long total = 0;//总数量
private int totalPage;//总页数
private List<T> content;
private int showPageSize = 5;//显示在页面可快速跳转的页码个数
private List<Integer> currentShowPage = new ArrayList<Integer>();//当前显示在页面快速跳转的页码
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public List<T> getContent() {
return content;
}
public void setContent(List<T> content) {
this.content = content;
后面还有 46 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。