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