public static enum CommonTimeUtil.TimeBucket extends Enum<CommonTimeUtil.TimeBucket>
MILLISECOND
is at the end as it was added later and some serialisers use the ordinal
associated to the enum. Adding it at the end should avoid breaking
existing serialisers.Enum Constant and Description |
---|
DAY |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
static CommonTimeUtil.TimeBucket |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonTimeUtil.TimeBucket[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonTimeUtil.TimeBucket SECOND
public static final CommonTimeUtil.TimeBucket MINUTE
public static final CommonTimeUtil.TimeBucket HOUR
public static final CommonTimeUtil.TimeBucket DAY
public static final CommonTimeUtil.TimeBucket WEEK
public static final CommonTimeUtil.TimeBucket MONTH
public static final CommonTimeUtil.TimeBucket YEAR
public static final CommonTimeUtil.TimeBucket MILLISECOND
public static CommonTimeUtil.TimeBucket[] values()
for (CommonTimeUtil.TimeBucket c : CommonTimeUtil.TimeBucket.values()) System.out.println(c);
public static CommonTimeUtil.TimeBucket 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 nullCopyright © 2022. All rights reserved.