com.seejoke.enums.Week Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-tools Show documentation
Show all versions of core-tools Show documentation
提供java常用的、流行的工具方法,减少项目冗余代码
package com.seejoke.enums;
/**
* @author zhy
* @date 2017/7/5 15:08
*/
public enum Week {
MONDAY("星期一", "Monday", "Mon.", 1),
TUESDAY("星期二", "Tuesday", "Tues.", 2),
WEDNESDAY("星期三", "Wednesday", "Wed.", 3),
THURSDAY("星期四", "Thursday", "Thur.", 4),
FRIDAY("星期五", "Friday", "Fri.", 5),
SATURDAY("星期六", "Saturday", "Sat.", 6),
SUNDAY("星期日", "Sunday", "Sun.", 7);
String name_cn;
String name_en;
String name_enShort;
int number;
Week(String name_cn, String name_en, String name_enShort, int number) {
this.name_cn = name_cn;
this.name_en = name_en;
this.name_enShort = name_enShort;
this.number = number;
}
public String getChineseName() {
return name_cn;
}
public String getName() {
return name_en;
}
public String getShortName() {
return name_enShort;
}
public int getNumber() {
return number;
}
}