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 Optional<TemporalType> |
getTemporalType(Class<?> type)
Get the temporal macro-type of given
type, if it is well-known temporal type. |
static Optional<TemporalType> |
getTemporalType(Temporal temporal)
Get the temporal macro-type of given
temporal instance, if available. |
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 Optional<TemporalType> getTemporalType(Temporal temporal)
temporal instance, if available.temporal - Temporal objectTemporalType of given Temporal, empty if given temporal is nullpublic static Optional<TemporalType> getTemporalType(Class<?> type)
type, if it is well-known temporal type.
type - Type to inspectTemporalType of given type, empty if null or if it is not recognized as a known
temporal typeCopyright © 2019 The Holon Platform. All rights reserved.