public static enum Fields.Week extends Enum<Fields.Week>
| Enum Constant and Description |
|---|
Fri
周五
|
Mon
周一
|
Sat
周六
|
Sun
周日
|
Thu
周四
|
Tue
周二
|
Wed
周三
|
| Modifier and Type | Method and Description |
|---|---|
static Fields.Week |
getByCode(int code)
根据code查询星期名称枚举
|
String |
getCnName() |
static String |
getCnNameByCode(int code)
根据code查询星期中文名称
|
String |
getEnName() |
static String |
getEnNameByCode(int code)
根据code查询星期英文全称
|
int |
getKey() |
static String |
getShortNameByCode(int code)
根据code查询星期英文简称
|
static Fields.Week |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Week[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fields.Week Sun
public static final Fields.Week Mon
public static final Fields.Week Tue
public static final Fields.Week Wed
public static final Fields.Week Thu
public static final Fields.Week Fri
public static final Fields.Week Sat
public static Fields.Week[] values()
for (Fields.Week c : Fields.Week.values()) System.out.println(c);
public static Fields.Week 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 Fields.Week getByCode(int code)
code - codepublic static String getShortNameByCode(int code)
code - codepublic static String getEnNameByCode(int code)
code - codepublic static String getCnNameByCode(int code)
code - codepublic int getKey()
public String getEnName()
public String getCnName()
Copyright © 2022. All rights reserved.