microsoft.exchange.webservices.data
Enum DayOfTheWeek

java.lang.Object
  extended by java.lang.Enum<DayOfTheWeek>
      extended by microsoft.exchange.webservices.data.DayOfTheWeek
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DayOfTheWeek>

public enum DayOfTheWeek
extends java.lang.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.


Enum Constant Summary
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.
 
Method Summary
static DayOfTheWeek valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null