public static enum DateBuilder.IntervalUnit extends Enum<DateBuilder.IntervalUnit>
Enum Constant and Description |
---|
DAY |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
static DateBuilder.IntervalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateBuilder.IntervalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateBuilder.IntervalUnit MILLISECOND
public static final DateBuilder.IntervalUnit SECOND
public static final DateBuilder.IntervalUnit MINUTE
public static final DateBuilder.IntervalUnit HOUR
public static final DateBuilder.IntervalUnit DAY
public static final DateBuilder.IntervalUnit WEEK
public static final DateBuilder.IntervalUnit MONTH
public static final DateBuilder.IntervalUnit YEAR
public static DateBuilder.IntervalUnit[] values()
for (DateBuilder.IntervalUnit c : DateBuilder.IntervalUnit.values()) System.out.println(c);
public static DateBuilder.IntervalUnit 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 2001-2019, Terracotta, Inc.