public enum TimestampPrecision extends java.lang.Enum<TimestampPrecision>
| Enum Constant and Description |
|---|
MICROSECONDS |
MILLISECONDS |
NANOSECONDS |
SECONDS |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPrecision() |
static TimestampPrecision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimestampPrecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampPrecision MILLISECONDS
public static final TimestampPrecision SECONDS
public static final TimestampPrecision MICROSECONDS
public static final TimestampPrecision NANOSECONDS
public static TimestampPrecision[] values()
for (TimestampPrecision c : TimestampPrecision.values()) System.out.println(c);
public static TimestampPrecision valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPrecision()