public static enum BetweenFormat.Level extends Enum<BetweenFormat.Level>
| 枚举常量和说明 |
|---|
DAY
天
|
HOUR
小时
|
MILLISECOND
毫秒
|
MILLSECOND
已过时。
拼写错误,请使用
MILLISECOND |
MINUTE
分钟
|
SECOND
秒
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName()
获取级别名称
|
static BetweenFormat.Level |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BetweenFormat.Level[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BetweenFormat.Level DAY
public static final BetweenFormat.Level HOUR
public static final BetweenFormat.Level MINUTE
public static final BetweenFormat.Level SECOND
@Deprecated public static final BetweenFormat.Level MILLSECOND
MILLISECONDpublic static final BetweenFormat.Level MILLISECOND
private final String name
public static BetweenFormat.Level[] values()
for (BetweenFormat.Level c : BetweenFormat.Level.values()) System.out.println(c);
public static BetweenFormat.Level valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getName()
Copyright © 2020. All rights reserved.