public static enum Dates.TimeType extends java.lang.Enum<Dates.TimeType>
时间类型
millisecond 毫秒 second 秒 minute 分钟 hour 小时 day 日.| Enum Constant and Description |
|---|
day
The day.
|
hour
The hour.
|
millisecond
The millisecond.
|
minute
The minute.
|
second
The second.
|
| Modifier and Type | Method and Description |
|---|---|
static Dates.TimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Dates.TimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dates.TimeType millisecond
public static final Dates.TimeType second
public static final Dates.TimeType minute
public static final Dates.TimeType hour
public static final Dates.TimeType day
public static Dates.TimeType[] values()
for (Dates.TimeType c : Dates.TimeType.values()) System.out.println(c);
public static Dates.TimeType 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