public static enum Fields.Quarter extends Enum<Fields.Quarter>
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static Fields.Quarter |
of(int intValue)
将 季度int转换为Season枚举对象
|
static Fields.Quarter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Quarter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fields.Quarter Q1
public static final Fields.Quarter Q2
public static final Fields.Quarter Q3
public static final Fields.Quarter Q4
public static Fields.Quarter[] values()
for (Fields.Quarter c : Fields.Quarter.values()) System.out.println(c);
public static Fields.Quarter 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.Quarter of(int intValue)
intValue - 季度int表示Fields.QuarterQ1,
Q2,
Q3,
Q4public int getValue()
Copyright © 2020. All rights reserved.