public enum ChronoDate extends Enum<ChronoDate>
| Enum Constant and Description |
|---|
DAYS
天
|
FIRST_HALF_YEAR
上半年
|
MONTHS
月
|
NEXT_HALF_YEAR
下半年
|
QUARTER
季节
|
WEEKS
周
|
YEARS
年
|
| Modifier and Type | Field and Description |
|---|---|
private Integer |
code
编码
|
private String |
name
名称
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCode() |
String |
getName() |
static ChronoDate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChronoDate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChronoDate YEARS
public static final ChronoDate FIRST_HALF_YEAR
public static final ChronoDate NEXT_HALF_YEAR
public static final ChronoDate QUARTER
public static final ChronoDate MONTHS
public static final ChronoDate WEEKS
public static final ChronoDate DAYS
public static ChronoDate[] values()
for (ChronoDate c : ChronoDate.values()) System.out.println(c);
public static ChronoDate 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 Integer getCode()
public String getName()
Copyright © 2024. All rights reserved.