public enum WeekNameEnum extends Enum<WeekNameEnum>
Modifier and Type | Method and Description |
---|---|
static WeekNameEnum |
getByCode(int code)
根据code查询星期名称枚举
|
int |
getCode() |
String |
getFullNameEn() |
static String |
getFullNameEnByCode(int code)
根据code查询星期英文全称
|
String |
getNameCn() |
static String |
getNameCnByCode(int code)
根据code查询星期中文名称
|
static String |
getShortNameEnByCode(int code)
根据code查询星期英文简称
|
static WeekNameEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekNameEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekNameEnum Mon
public static final WeekNameEnum Tue
public static final WeekNameEnum Wed
public static final WeekNameEnum Thu
public static final WeekNameEnum Fri
public static final WeekNameEnum Sat
public static final WeekNameEnum Sun
public static WeekNameEnum[] values()
for (WeekNameEnum c : WeekNameEnum.values()) System.out.println(c);
public static WeekNameEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static WeekNameEnum getByCode(int code)
code
- codepublic static String getShortNameEnByCode(int code)
code
- codepublic static String getFullNameEnByCode(int code)
code
- codepublic static String getNameCnByCode(int code)
code
- codepublic int getCode()
public String getFullNameEn()
public String getNameCn()
Copyright © 2021. All rights reserved.