Quarter代替@Deprecated public enum Season extends Enum<Season>
Quarter代替| Enum Constant and Description |
|---|
AUTUMN
Deprecated.
秋季(第三季度)
|
SPRING
Deprecated.
春季(第一季度)
|
SUMMER
Deprecated.
夏季(第二季度)
|
WINTER
Deprecated.
冬季(第四季度)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Deprecated.
|
static Season |
of(int intValue)
Deprecated.
使用@
Quarter 替代 |
static Season |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Season[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Season SPRING
public static final Season SUMMER
public static final Season AUTUMN
public static final Season WINTER
public static Season[] values()
for (Season c : Season.values()) System.out.println(c);
public static Season 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 © 2020. All rights reserved.