📄 count.java
字号:
package count;
import java.io.Serializable;
import java.util.Date;
public class Count implements Serializable {
private Date createDate;//计数品开始统计日期
private Date maxDate;//日最高访问量发生日期
private Date todayDate;//今天的日期
private int tempCount;//临时计数,值大于20时将内存数据count对象存入数据库
private int allCount;//总访问量
private int avgCount;//日平均访问量
private int maxCount;//日最高访问量
private int onlineCount;//在线人数
private int todayCount;//今日访问量
public Count(int allCount, int todayCount, int avgCount, int maxCount,
Date todayDate, Date maxDate, Date createDate) {
this.allCount = allCount;
this.todayCount = todayCount;
this.avgCount = avgCount;
this.maxCount = maxCount;
this.todayDate = todayDate;
this.maxDate = maxDate;
this.createDate = createDate;
}
public Count() {
}
public void setTempCount(int tempCount){
this.tempCount=tempCount;
}
public int getTempCount(){
return this.tempCount;
}
public void setAllCount(int allCount) {
this.allCount = allCount;
}
public int getAllCount() {
return this.allCount;
}
public void setAvgCount(int avgCount) {
this.avgCount = avgCount;
}
public int getAvgCount() {
return this.avgCount;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getCreateDate() {
return this.createDate;
}
public void setMaxCount(int maxCount) {
this.maxCount = maxCount;
}
public int getMaxCount() {
return this.maxCount;
}
public void setMaxDate(Date maxDate) {
this.maxDate = maxDate;
}
public Date getMaxDate() {
return this.maxDate;
}
public void setOnlineCount(int onlineCount) {
this.onlineCount = onlineCount;
}
public int getOnlineCount() {
return onlineCount;
}
public void setTodayCount(int todayCount) {
this.todayCount = todayCount;
}
public int getTodayCount() {
return this.todayCount;
}
public void setTodayDate(Date todayDate) {
this.todayDate = todayDate;
}
public Date getTodayDate() {
return this.todayDate;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -