public enum DayEnum extends java.lang.Enum<DayEnum>
Java-Klasse für DayEnum.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<simpleType name="DayEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="monday"/> <enumeration value="tuesday"/> <enumeration value="wednesday"/> <enumeration value="thursday"/> <enumeration value="friday"/> <enumeration value="saturday"/> <enumeration value="sunday"/> </restriction> </simpleType>
Enum Constant and Description |
---|
FRIDAY
Friday.
|
MONDAY
Monday.
|
SATURDAY
Saturday.
|
SUNDAY
Sunday.
|
THURSDAY
Thursday.
|
TUESDAY
Tuesday.
|
WEDNESDAY
Wednesday.
|
Modifier and Type | Method and Description |
---|---|
static DayEnum |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static DayEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayEnum MONDAY
public static final DayEnum TUESDAY
public static final DayEnum WEDNESDAY
public static final DayEnum THURSDAY
public static final DayEnum FRIDAY
public static final DayEnum SATURDAY
public static final DayEnum SUNDAY
public static DayEnum[] values()
for (DayEnum c : DayEnum.values()) System.out.println(c);
public static DayEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
public static DayEnum fromValue(java.lang.String v)