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