|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TimeUnit> dk.netarkivet.harvester.datamodel.TimeUnit
public enum TimeUnit
Enumeration of the possible time units used for frequencies in schedules.
Enum Constant Summary | |
---|---|
DAILY
Daily time unit will result in a frequency where only "on minute" and "on hour" will be set, i.e. |
|
HOURLY
Hourly time unit will result in a frequency where only "on minute" will be set, i.e. |
|
MONTHLY
Monthly time unit will result in a frequency where only "on minute", "on hour" and "on day of month" will be set, i.e. |
|
NOTIMEUNIT
'No time unit' is only included for historic reasons, since 0 did not denote a timeunit. |
|
WEEKLY
Weekly time unit will result in a frequency where only "on minute", "on hour" and "on day of week" will be set, i.e. |
Method Summary | |
---|---|
static TimeUnit |
fromOrdinal(int tu)
Helper method that gives a proper object from e.g. |
static TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TimeUnit[] |
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 |
---|
public static final TimeUnit NOTIMEUNIT
public static final TimeUnit HOURLY
public static final TimeUnit DAILY
public static final TimeUnit WEEKLY
public static final TimeUnit MONTHLY
Method Detail |
---|
public static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static TimeUnit fromOrdinal(int tu)
tu
- a certain integer for a timeunit
ArgumentNotValid
- If argument tu is invalid
(i.e. does not correspond to a TimeUnit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |