caltool.schedule
Enum ReminderTimeUnit

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

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

Reminders can come minutes, hours, or days before the start time of a scheduled item.


Enum Constant Summary
DaysBefore
          Indicates that a reminder occurs a specified number of days before a scheduled item.
HoursBefore
          Indicates that a reminder occurs a specified number of hours before a scheduled item.
MinutesBefore
          Indicates that a reminder occurs a specified number of minutes before a scheduled item.
 
Method Summary
static ReminderTimeUnit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ReminderTimeUnit[] 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

MinutesBefore

public static final ReminderTimeUnit MinutesBefore
Indicates that a reminder occurs a specified number of minutes before a scheduled item.


HoursBefore

public static final ReminderTimeUnit HoursBefore
Indicates that a reminder occurs a specified number of hours before a scheduled item.


DaysBefore

public static final ReminderTimeUnit DaysBefore
Indicates that a reminder occurs a specified number of days before a scheduled item.

Method Detail

values

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

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

valueOf

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