public static enum Fields.Date extends Enum<Fields.Date>
| Enum Constant and Description |
|---|
LASTMONTH
上月
|
LASTWEEK
上周
|
LASTYEAR
去年
|
NEXTMONTH
下月
|
NEXTWEEK
下周
|
NEXTYEAR
明年
|
TODAY
今天
|
TOMORROW
明天
|
YESTERDAY
昨天
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
convertToMap() |
static Fields.Date |
getByCode(String code) |
String |
getKey() |
String |
getName() |
static Fields.Date |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Date[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fields.Date TODAY
public static final Fields.Date TOMORROW
public static final Fields.Date NEXTWEEK
public static final Fields.Date NEXTMONTH
public static final Fields.Date NEXTYEAR
public static final Fields.Date YESTERDAY
public static final Fields.Date LASTWEEK
public static final Fields.Date LASTMONTH
public static final Fields.Date LASTYEAR
public static Fields.Date[] values()
for (Fields.Date c : Fields.Date.values()) System.out.println(c);
public static Fields.Date 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.Date getByCode(String code)
public String getKey()
public String getName()
Copyright © 2022. All rights reserved.