public enum DayOfWeek extends 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="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
The day of week named Friday.
|
MONDAY
The day of week named Monday.
|
SATURDAY
The day of week named Saturday.
|
SUNDAY
The day of week named Sunday.
|
THURSDAY
The day of week named Thursday.
|
TUESDAY
The day of week named Tuesday.
|
WEDNESDAY
The day of week named Wednesday.
|
| Modifier and Type | Method and Description |
|---|---|
static DayOfWeek |
fromValue(String v) |
String |
value() |
static DayOfWeek |
valueOf(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 MONDAY
public static final DayOfWeek TUESDAY
public static final DayOfWeek WEDNESDAY
public static final DayOfWeek THURSDAY
public static final DayOfWeek FRIDAY
public static final DayOfWeek SATURDAY
public static final DayOfWeek SUNDAY
public static DayOfWeek[] values()
for (DayOfWeek c : DayOfWeek.values()) System.out.println(c);
public static DayOfWeek 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 value()
Copyright © 2023. All rights reserved.