public static enum Fields.Time extends Enum<Fields.Time>
| Enum Constant and Description |
|---|
DAY
一天的毫秒数
|
HOUR
一小时的毫秒数
|
MINUTE
一分钟的毫秒数
|
MS
一毫秒
|
SECOND
一秒的毫秒数
|
WEEK
一周的毫秒数
|
| Modifier and Type | Method and Description |
|---|---|
long |
getMillis() |
static Fields.Time |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Time[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fields.Time MS
public static final Fields.Time SECOND
public static final Fields.Time MINUTE
public static final Fields.Time HOUR
public static final Fields.Time DAY
public static final Fields.Time WEEK
public static Fields.Time[] values()
for (Fields.Time c : Fields.Time.values()) System.out.println(c);
public static Fields.Time 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 long getMillis()
Copyright © 2020. All rights reserved.