Package org.aoju.bus.core.lang
Enum Class Fields.Week
- All Implemented Interfaces:
Serializable,Comparable<Fields.Week>,Constable
- Enclosing class:
Fields
星期枚举 与Calendar中的星期int值对应
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Fields.WeekgetByCode(int code) 根据code查询星期名称枚举static StringgetCnNameByCode(int code) 根据code查询星期中文名称static StringgetEnNameByCode(int code) 根据code查询星期英文全称intgetKey()static StringgetShortNameByCode(int code) 根据code查询星期英文简称static Fields.WeekReturns the enum constant of this class with the specified name.static Fields.Week[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Sun
周日 -
Mon
周一 -
Tue
周二 -
Wed
周三 -
Thu
周四 -
Fri
周五 -
Sat
周六
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getByCode
-
getShortNameByCode
根据code查询星期英文简称- Parameters:
code- code- Returns:
- String
-
getEnNameByCode
根据code查询星期英文全称- Parameters:
code- code- Returns:
- String
-
getCnNameByCode
根据code查询星期中文名称- Parameters:
code- code- Returns:
- String
-
getKey
public int getKey() -
getEnName
-
getCnName
-