public static enum TimeUnits.Unit extends java.lang.Enum<TimeUnits.Unit>
Enum Constant and Description |
---|
DAY
Day.
|
DAY_OF_THE_WEEK
Day of the week.
|
HOUR
Hour.
|
HOUR_OF_THE_DAY
Hour of the day.
|
MILLISECOND
Millisecond.
|
MINUTE
Minute.
|
MINUTE_OF_THE_HOUR
Minute of the hour.
|
MONTH
Month.
|
MONTH_OF_THE_YEAR
Month of the year.
|
QTR_OF_THE_YEAR
Quarter of the year.
|
QUARTER
Quarter.
|
SECOND
Second.
|
WEEK
Week.
|
YEAR
Year.
|
Modifier and Type | Method and Description |
---|---|
static TimeUnits.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnits.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnits.Unit MILLISECOND
public static final TimeUnits.Unit SECOND
public static final TimeUnits.Unit MINUTE
public static final TimeUnits.Unit HOUR
public static final TimeUnits.Unit DAY
public static final TimeUnits.Unit WEEK
public static final TimeUnits.Unit MONTH
public static final TimeUnits.Unit QUARTER
public static final TimeUnits.Unit YEAR
public static final TimeUnits.Unit MINUTE_OF_THE_HOUR
public static final TimeUnits.Unit HOUR_OF_THE_DAY
public static final TimeUnits.Unit DAY_OF_THE_WEEK
public static final TimeUnits.Unit MONTH_OF_THE_YEAR
public static final TimeUnits.Unit QTR_OF_THE_YEAR
public static TimeUnits.Unit[] values()
for (TimeUnits.Unit c : TimeUnits.Unit.values()) System.out.println(c);
public static TimeUnits.Unit 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 nullCopyright © 2000-2014 TIBCO Inc. All Rights Reserved.