public enum TemporalType extends Enum<TemporalType>
| Enum Constant and Description |
|---|
DATE
Temporal representing only a date
|
DATE_TIME
Temporal representing a date and time
|
TIME
Temporal representing only a time
|
| Modifier and Type | Method and Description |
|---|---|
static TemporalType |
getTemporalType(Temporal temporal)
Get temporal macro-type of given
temporal instance |
static TemporalType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemporalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemporalType DATE
public static final TemporalType TIME
public static final TemporalType DATE_TIME
public static TemporalType[] values()
for (TemporalType c : TemporalType.values()) System.out.println(c);
public static TemporalType 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 static TemporalType getTemporalType(Temporal temporal)
temporal instancetemporal - Temporal to processTemporal, or null if given temporal was nullCopyright © 2017 The Holon Platform. All rights reserved.