Package de.willuhn.jameica.reminder
Enum ReminderInterval.TimeUnit
- java.lang.Object
-
- java.lang.Enum<ReminderInterval.TimeUnit>
-
- de.willuhn.jameica.reminder.ReminderInterval.TimeUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReminderInterval.TimeUnit>
- Enclosing class:
- ReminderInterval
public static enum ReminderInterval.TimeUnit extends java.lang.Enum<ReminderInterval.TimeUnit>
Die Zeiteinheit.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCalendarField()
Liefert das zugehoerige java.util.Calendar-Feld.static ReminderInterval.TimeUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReminderInterval.TimeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOURS
public static final ReminderInterval.TimeUnit HOURS
Stuendliche Ausfuehrung.
-
DAYS
public static final ReminderInterval.TimeUnit DAYS
Taegliche Ausfuehrung.
-
WEEKS
public static final ReminderInterval.TimeUnit WEEKS
Woechentliche Ausfuehrung.
-
MONTHS
public static final ReminderInterval.TimeUnit MONTHS
Monatliche Ausfuehrung.
-
-
Method Detail
-
values
public static ReminderInterval.TimeUnit[] 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 (ReminderInterval.TimeUnit c : ReminderInterval.TimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReminderInterval.TimeUnit 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 namejava.lang.NullPointerException
- if the argument is null
-
getCalendarField
public int getCalendarField()
Liefert das zugehoerige java.util.Calendar-Feld.- Returns:
- das zugehoerige java.util.Calendar-Feld.
-
-