public static enum TimestampFormatTrait.Format extends java.lang.Enum<TimestampFormatTrait.Format>
timestampFormat values.| Enum Constant and Description |
|---|
DATE_TIME |
EPOCH_SECONDS |
HTTP_DATE |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static TimestampFormatTrait.Format |
fromString(java.lang.String value)
Create a
Format from a string that would appear in a model. |
java.lang.String |
toString() |
static TimestampFormatTrait.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimestampFormatTrait.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampFormatTrait.Format EPOCH_SECONDS
public static final TimestampFormatTrait.Format DATE_TIME
public static final TimestampFormatTrait.Format HTTP_DATE
public static final TimestampFormatTrait.Format UNKNOWN
public static TimestampFormatTrait.Format[] values()
for (TimestampFormatTrait.Format c : TimestampFormatTrait.Format.values()) System.out.println(c);
public static TimestampFormatTrait.Format 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 static TimestampFormatTrait.Format fromString(java.lang.String value)
Format from a string that would appear in a model.
Any unknown value is returned as Unknown.
value - Value from a trait or model.public java.lang.String toString()
toString in class java.lang.Enum<TimestampFormatTrait.Format>