public static enum DateIntervalValue.TimeUnit extends java.lang.Enum<DateIntervalValue.TimeUnit>
Modifier and Type | Method and Description |
---|---|
static DateIntervalValue.TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateIntervalValue.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateIntervalValue.TimeUnit DAY
public static final DateIntervalValue.TimeUnit HOUR
public static final DateIntervalValue.TimeUnit MINUTE
public static final DateIntervalValue.TimeUnit MONTH
public static DateIntervalValue.TimeUnit[] values()
for (DateIntervalValue.TimeUnit c : DateIntervalValue.TimeUnit.values()) System.out.println(c);
public static DateIntervalValue.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 namejava.lang.NullPointerException
- if the argument is null