@PublicEvolving public enum TimeIntervalUnit extends Enum<TimeIntervalUnit> implements TableSymbol
Enum Constant and Description |
---|
CENTURY |
DAY |
DAY_TO_HOUR |
DAY_TO_MINUTE |
DAY_TO_SECOND |
DECADE |
EPOCH |
HOUR |
HOUR_TO_MINUTE |
HOUR_TO_SECOND |
MICROSECOND |
MILLENNIUM |
MILLISECOND |
MINUTE |
MINUTE_TO_SECOND |
MONTH |
NANOSECOND |
QUARTER |
SECOND |
WEEK |
YEAR |
YEAR_TO_MONTH |
Modifier and Type | Method and Description |
---|---|
static TimeIntervalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeIntervalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeIntervalUnit MILLENNIUM
public static final TimeIntervalUnit CENTURY
public static final TimeIntervalUnit DECADE
public static final TimeIntervalUnit YEAR
public static final TimeIntervalUnit YEAR_TO_MONTH
public static final TimeIntervalUnit QUARTER
public static final TimeIntervalUnit MONTH
public static final TimeIntervalUnit WEEK
public static final TimeIntervalUnit DAY
public static final TimeIntervalUnit DAY_TO_HOUR
public static final TimeIntervalUnit DAY_TO_MINUTE
public static final TimeIntervalUnit DAY_TO_SECOND
public static final TimeIntervalUnit HOUR
public static final TimeIntervalUnit HOUR_TO_MINUTE
public static final TimeIntervalUnit HOUR_TO_SECOND
public static final TimeIntervalUnit MINUTE
public static final TimeIntervalUnit MINUTE_TO_SECOND
public static final TimeIntervalUnit SECOND
public static final TimeIntervalUnit MILLISECOND
public static final TimeIntervalUnit MICROSECOND
public static final TimeIntervalUnit NANOSECOND
public static final TimeIntervalUnit EPOCH
public static TimeIntervalUnit[] values()
for (TimeIntervalUnit c : TimeIntervalUnit.values()) System.out.println(c);
public static TimeIntervalUnit 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 © 2014–2024 The Apache Software Foundation. All rights reserved.