public static enum Timestamp.Precision extends Enum<Timestamp.Precision>
Enum Constant and Description |
---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
YEAR |
Modifier and Type | Method and Description |
---|---|
static Timestamp.Precision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Timestamp.Precision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Timestamp.Precision YEAR
public static final Timestamp.Precision MONTH
public static final Timestamp.Precision DAY
public static final Timestamp.Precision HOUR
public static final Timestamp.Precision MINUTE
public static final Timestamp.Precision SECOND
public static Timestamp.Precision[] values()
for (Timestamp.Precision c : Timestamp.Precision.values()) System.out.println(c);
public static Timestamp.Precision 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 © 2018 Open eHealth Foundation. All rights reserved.