public enum Week extends Enum<Week>
| Enum Constant and Description |
|---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
| Modifier and Type | Method and Description |
|---|---|
String |
getChineseName() |
String |
getName() |
int |
getNumber() |
String |
getShortName() |
static Week |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Week[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Week MONDAY
public static final Week TUESDAY
public static final Week WEDNESDAY
public static final Week THURSDAY
public static final Week FRIDAY
public static final Week SATURDAY
public static final Week SUNDAY
public static Week[] values()
for (Week c : Week.values()) System.out.println(c);
public static Week 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 String getChineseName()
public String getName()
public String getShortName()
public int getNumber()
Copyright © 2016. All rights reserved.