public enum TimeInterval extends Enum<TimeInterval>
Enum Constant and Description |
---|
DAY
Day of month.
|
DAY_OF_WEEK
Day of week.
|
DAY_OF_WEEK_IN_MONTH
Day of week in month.
|
DAY_OF_YEAR
Day of year.
|
HOUR
1 Hour.
|
MILLISECOND
1 Millisecond.
|
MINUTE
1 Minute.
|
MONTH
1 Month.
|
QUARTER
1 Quarter.
|
SECOND
1 Second.
|
TIME_IN_MILLIS
Total time in milliseconds.
|
WEEK
Week in month.
|
WEEK_OF_YEAR
Week in year.
|
YEAR
1 Year.
|
Modifier and Type | Method and Description |
---|---|
static TimeInterval |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeInterval YEAR
public static final TimeInterval QUARTER
public static final TimeInterval MONTH
public static final TimeInterval WEEK
public static final TimeInterval WEEK_OF_YEAR
public static final TimeInterval DAY
public static final TimeInterval DAY_OF_WEEK
public static final TimeInterval DAY_OF_WEEK_IN_MONTH
public static final TimeInterval DAY_OF_YEAR
public static final TimeInterval HOUR
public static final TimeInterval MINUTE
public static final TimeInterval SECOND
public static final TimeInterval MILLISECOND
public static final TimeInterval TIME_IN_MILLIS
public static TimeInterval[] values()
for (TimeInterval c : TimeInterval.values()) System.out.println(c);
public static TimeInterval 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 null