org.oddjob.schedules.units
Enum WeekOfMonth.Weeks

java.lang.Object
  extended by java.lang.Enum<WeekOfMonth.Weeks>
      extended by org.oddjob.schedules.units.WeekOfMonth.Weeks
All Implemented Interfaces:
Serializable, Comparable<WeekOfMonth.Weeks>, WeekOfMonth
Enclosing interface:
WeekOfMonth

public static enum WeekOfMonth.Weeks
extends Enum<WeekOfMonth.Weeks>
implements WeekOfMonth


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.oddjob.schedules.units.WeekOfMonth
WeekOfMonth.Conversions, WeekOfMonth.Number, WeekOfMonth.Weeks
 
Enum Constant Summary
FIFTH
          Fifth week of the month.
FIRST
          First week of the month.
FOURTH
          Fourth week of the month.
LAST
          Last week of the month.
PENULTIMATE
          The Week before the last week of the month.
SECOND
          Second week of the month.
THIRD
          Third week of the month.
 
Method Summary
static WeekOfMonth.Weeks valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WeekOfMonth.Weeks[] 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
 
Methods inherited from interface org.oddjob.schedules.units.WeekOfMonth
getWeekNumber
 

Enum Constant Detail

FIRST

public static final WeekOfMonth.Weeks FIRST
First week of the month.


SECOND

public static final WeekOfMonth.Weeks SECOND
Second week of the month.


THIRD

public static final WeekOfMonth.Weeks THIRD
Third week of the month.


FOURTH

public static final WeekOfMonth.Weeks FOURTH
Fourth week of the month.


FIFTH

public static final WeekOfMonth.Weeks FIFTH
Fifth week of the month.


LAST

public static final WeekOfMonth.Weeks LAST
Last week of the month.


PENULTIMATE

public static final WeekOfMonth.Weeks PENULTIMATE
The Week before the last week of the month.

Method Detail

values

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

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

valueOf

public static WeekOfMonth.Weeks 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 name
NullPointerException - if the argument is null