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