Enum DayOfTheWeek
- java.lang.Object
-
- java.lang.Enum<DayOfTheWeek>
-
- microsoft.exchange.webservices.data.core.enumeration.property.time.DayOfTheWeek
-
- All Implemented Interfaces:
Serializable,Comparable<DayOfTheWeek>
public enum DayOfTheWeek extends Enum<DayOfTheWeek>
Specifies the day of the week. For the standard days of the week (Sunday, Monday...) the DayOfTheWeek enum value is the same as the System.DayOfWeek enum type. These values can be safely cast between the two enum types. The special days of the week (Day, Weekday and WeekendDay) are used for monthly and yearly recurrences and cannot be cast to System.DayOfWeek values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DayOfTheWeekvalueOf(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.
-
-
-
Enum Constant Detail
-
Sunday
public static final DayOfTheWeek Sunday
The Sunday.
-
Monday
public static final DayOfTheWeek Monday
The Monday.
-
Tuesday
public static final DayOfTheWeek Tuesday
The Tuesday.
-
Wednesday
public static final DayOfTheWeek Wednesday
The Wednesday.
-
Thursday
public static final DayOfTheWeek Thursday
The Thursday.
-
Friday
public static final DayOfTheWeek Friday
The Friday.
-
Saturday
public static final DayOfTheWeek Saturday
The Saturday.
-
Day
public static final DayOfTheWeek Day
The Day.
-
Weekday
public static final DayOfTheWeek Weekday
The Weekday.
-
WeekendDay
public static final DayOfTheWeek WeekendDay
The Weekend day.
-
-
Method Detail
-
values
public static DayOfTheWeek[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DayOfTheWeek c : DayOfTheWeek.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DayOfTheWeek valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-