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