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