biweekly.util
Enum Recurrence.Frequency

java.lang.Object
  extended by java.lang.Enum<Recurrence.Frequency>
      extended by biweekly.util.Recurrence.Frequency
All Implemented Interfaces:
Serializable, Comparable<Recurrence.Frequency>
Enclosing class:
Recurrence

public static enum Recurrence.Frequency
extends Enum<Recurrence.Frequency>

Represents the frequency at which a recurrence rule repeats itself.

Author:
Michael Angstadt

Enum Constant Summary
DAILY
           
HOURLY
           
MINUTELY
           
MONTHLY
           
SECONDLY
           
WEEKLY
           
YEARLY
           
 
Method Summary
static Recurrence.Frequency valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Recurrence.Frequency[] 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

SECONDLY

public static final Recurrence.Frequency SECONDLY

MINUTELY

public static final Recurrence.Frequency MINUTELY

HOURLY

public static final Recurrence.Frequency HOURLY

DAILY

public static final Recurrence.Frequency DAILY

WEEKLY

public static final Recurrence.Frequency WEEKLY

MONTHLY

public static final Recurrence.Frequency MONTHLY

YEARLY

public static final Recurrence.Frequency YEARLY
Method Detail

values

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

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

valueOf

public static Recurrence.Frequency 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


Copyright © 2013 Michael Angstadt. All Rights Reserved.