caltool.schedule
Enum RecurringInterval

java.lang.Object
  extended by java.lang.Enum<RecurringInterval>
      extended by caltool.schedule.RecurringInterval
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RecurringInterval>

public enum RecurringInterval
extends java.lang.Enum<RecurringInterval>

Class RecuringInterval specifies the granularity at which recurring items are defined. Weekly and Biweekly settings allow the user to specify recurrence on one or more days of the week. The Monthly setting allows the user to specify recurrence on one or more days in one or more weeks of each month. The Yearly setting allows the user to specify recurrence on one or more specific dates in the year.


Enum Constant Summary
Biweekly
          Indicates a scheduled item recurs bi-weekly.
Monthly
          Indicates a scheduled item recurs monthly.
Weekly
          Indicates a scheduled item recurs weekly.
Yearly
          Indicates a scheduled item recurs yearly.
 
Method Summary
static RecurringInterval valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RecurringInterval[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Weekly

public static final RecurringInterval Weekly
Indicates a scheduled item recurs weekly.


Biweekly

public static final RecurringInterval Biweekly
Indicates a scheduled item recurs bi-weekly.


Monthly

public static final RecurringInterval Monthly
Indicates a scheduled item recurs monthly.


Yearly

public static final RecurringInterval Yearly
Indicates a scheduled item recurs yearly.

Method Detail

values

public static final RecurringInterval[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RecurringInterval c : RecurringInterval.values())
        System.out.println(c);

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

valueOf

public static RecurringInterval 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