📄 date.java
字号:
/*
* 创建日期 2006-12-6
*
* TODO 要更改此生成的文件的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
/**
* @author Administrator
*
* TODO 要更改此生成的类型注释的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
public class date {//附属于Note_diary.class,定义日记,提醒,节日等各属性
public int month;
public int day;
public String name;
public int year;
public String content;
public int which;////which 1为重要日子,2为提醒,3为日记
public String course[];
public int begin[];//开始周
public int end[];//结束周
public String where[];
public int weekday1;
public int classth1 ;
public String course1;
public int begin1;
public int end1;
public String where1;
public date(){
month=0;
day=0;
name="";
year=0;
content="";
which=0;
}
public date(int i){
month=0;
day=0;
name="";
year=0;
content="";
this.which =i;
}
public date(boolean oneday){
if(oneday){
weekday1=0;
classth1=0;
course1="无课程";
begin1=0;
end1=0;
where1="0";
}
else{
course=new String[5];
begin=new int[5];
end=new int[5];
where=new String[5];
for(int i=0;i<5;i++){
course[i]="";
begin[i]=0;
end[i]=0;
where[i]="";
}
}
}
/**
* @return 返回 day。
*/
public int getDay() {
return day;
}
/**
* @param day 要设置的 day。
*/
public void setDay(int day) {
this.day = day;
}
/**
* @return 返回 is_note。
*/
/**
* @param is_note 要设置的 is_note。
*/
/**
* @return 返回 month。
*/
public int getMonth() {
return month;
}
/**
* @param month 要设置的 month。
*/
public void setMonth(int month) {
this.month = month;
}
/**
* @return 返回 name。
*/
public String getName() {
return name;
}
/**
* @param name 要设置的 name。
*/
public void setName(String name) {
this.name = name;
}
/**
* @return 返回 year。
*/
public int getYear() {
return year;
}
/**
* @param year 要设置的 year。
*/
public void setYear(int year) {
this.year = year;
}
/**
* @return 返回 content。
*/
public String getContent() {
return content;
}
/**
* @param content 要设置的 content。
*/
public void setContent(String content) {
this.content = content;
}
/**
* @return 返回 which。
*/
public int getWhich() {
return which;
}
/**
* @param which 要设置的 which。
*/
public void setWhich(int which) {
this.which = which;
}
/**
* @return
*/
/**
* @param i
*/
/**
* @return 返回 begin。
*/
public int[] getBegin() {
return begin;
}
/**
* @param begin 要设置的 begin。
*/
public void setBegin(int[] begin) {
this.begin = begin;
}
/**
* @return 返回 begin1。
*/
public int getBegin1() {
return begin1;
}
/**
* @param begin1 要设置的 begin1。
*/
public void setBegin1(int begin1) {
this.begin1 = begin1;
}
/**
* @return 返回 classth1。
*/
public int getClassth1() {
return classth1;
}
/**
* @param classth1 要设置的 classth1。
*/
public void setClassth1(int classth1) {
this.classth1 = classth1;
}
/**
* @return 返回 course。
*/
public String[] getCourse() {
return course;
}
/**
* @param course 要设置的 course。
*/
public void setCourse(String[] course) {
this.course = course;
}
/**
* @return 返回 course1。
*/
public String getCourse1() {
return course1;
}
/**
* @param course1 要设置的 course1。
*/
public void setCourse1(String course1) {
this.course1 = course1;
}
/**
* @return 返回 end。
*/
public int[] getEnd() {
return end;
}
/**
* @param end 要设置的 end。
*/
public void setEnd(int[] end) {
this.end = end;
}
/**
* @return 返回 end1。
*/
public int getEnd1() {
return end1;
}
/**
* @param end1 要设置的 end1。
*/
public void setEnd1(int end1) {
this.end1 = end1;
}
/**
* @return 返回 weekday1。
*/
public int getWeekday1() {
return weekday1;
}
/**
* @param weekday1 要设置的 weekday1。
*/
public void setWeekday1(int weekday1) {
this.weekday1 = weekday1;
}
/**
* @return 返回 where。
*/
public String[] getWhere() {
return where;
}
/**
* @param where 要设置的 where。
*/
public void setWhere(String[] where) {
this.where = where;
}
/**
* @return 返回 where1。
*/
public String getWhere1() {
return where1;
}
/**
* @param where1 要设置的 where1。
*/
public void setWhere1(String where1) {
this.where1 = where1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -