public enum DayOfWeek extends java.lang.Enum<DayOfWeek>
Java class for dayOfWeek.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="dayOfWeek"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="SUN"/> <enumeration value="MON"/> <enumeration value="TUE"/> <enumeration value="WED"/> <enumeration value="THU"/> <enumeration value="FRI"/> <enumeration value="SAT"/> </restriction> </simpleType>
Modifier and Type | Method and Description |
---|---|
static DayOfWeek |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static DayOfWeek |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayOfWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayOfWeek SUN
public static final DayOfWeek MON
public static final DayOfWeek TUE
public static final DayOfWeek WED
public static final DayOfWeek THU
public static final DayOfWeek FRI
public static final DayOfWeek SAT
public static DayOfWeek[] values()
for (DayOfWeek c : DayOfWeek.values()) System.out.println(c);
public static DayOfWeek 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 DayOfWeek fromValue(java.lang.String v)