public enum TimeUnit extends Enum<TimeUnit>
Enum Constant and Description |
---|
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.
|
MINUTE
For minute time units, it doesn't make sense to use any additional constraints: "on minute", "on hour",
"on day of month" or "on day of week"
|
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.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
fromOrdinal(int tu)
Helper method that gives a proper object from e.g.
|
static TimeUnit |
valueOf(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.
|
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
public static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TimeUnit fromOrdinal(int tu)
tu
- a certain integer for a timeunitArgumentNotValid
- If argument tu is invalid (i.e. does not correspond to a TimeUnit)Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.