com.prozima.time
Enum TimeConstants.DayOfWeek

java.lang.Object
  extended by java.lang.Enum<TimeConstants.DayOfWeek>
      extended by com.prozima.time.TimeConstants.DayOfWeek
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TimeConstants.DayOfWeek>
Enclosing interface:
TimeConstants

public static enum TimeConstants.DayOfWeek
extends java.lang.Enum<TimeConstants.DayOfWeek>

Enum defining the possible days of the week.


Enum Constant Summary
FRIDAY
          Friday.
MONDAY
          Monday.
SATURDAY
          Saturday.
SUNDAY
          Sunday.
THURSDAY
          Thursday.
TUESDAY
          Tuesday.
WEDNESDAY
          Wednesday.
 
Method Summary
static TimeConstants.DayOfWeek valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TimeConstants.DayOfWeek[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FRIDAY

public static final TimeConstants.DayOfWeek FRIDAY
Friday. Day of Frigg (Germanic god, equivalent to Venus).


MONDAY

public static final TimeConstants.DayOfWeek MONDAY
Monday. Day of the Moon.


SATURDAY

public static final TimeConstants.DayOfWeek SATURDAY
Saturday. Day of Saturn (Roman god).


SUNDAY

public static final TimeConstants.DayOfWeek SUNDAY
Sunday. Day of the Sun.


THURSDAY

public static final TimeConstants.DayOfWeek THURSDAY
Thursday. Day of Thor (Norse god).


TUESDAY

public static final TimeConstants.DayOfWeek TUESDAY
Tuesday. Day of Tyr (Norse god, equivalent to Mars).


WEDNESDAY

public static final TimeConstants.DayOfWeek WEDNESDAY
Wednesday. Day of Woden (Anglo-saxon god).

Method Detail

valueOf

public static TimeConstants.DayOfWeek 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

values

public static TimeConstants.DayOfWeek[] 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 (TimeConstants.DayOfWeek c : TimeConstants.DayOfWeek.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared