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