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