count.java

来自「刚学JAVA不到一个月」· Java 代码 · 共 144 行

JAVA
144
字号
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 + =
减小字号Ctrl + -
显示快捷键?