public enum DayOfTheWeek extends Enum<DayOfTheWeek>
Enum Constant and Description |
---|
Day
The Day.
|
Friday
The Friday.
|
Monday
The Monday.
|
Saturday
The Saturday.
|
Sunday
The Sunday.
|
Thursday
The Thursday.
|
Tuesday
The Tuesday.
|
Wednesday
The Wednesday.
|
Weekday
The Weekday.
|
WeekendDay
The Weekend day.
|
Modifier and Type | Method and Description |
---|---|
static DayOfTheWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DayOfTheWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayOfTheWeek Sunday
public static final DayOfTheWeek Monday
public static final DayOfTheWeek Tuesday
public static final DayOfTheWeek Wednesday
public static final DayOfTheWeek Thursday
public static final DayOfTheWeek Friday
public static final DayOfTheWeek Saturday
public static final DayOfTheWeek Day
public static final DayOfTheWeek Weekday
public static final DayOfTheWeek WeekendDay
public static DayOfTheWeek[] values()
for (DayOfTheWeek c : DayOfTheWeek.values()) System.out.println(c);
public static DayOfTheWeek 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 nullCopyright © 2012–2015 Microsoft. All rights reserved.