public static enum TimestampFormatTrait.Format extends Enum<TimestampFormatTrait.Format>
Enum Constant and Description |
---|
ISO_8601
|
RFC_822
|
UNIX_TIMESTAMP
|
UNIX_TIMESTAMP_MILLIS
|
Modifier and Type | Method and Description |
---|---|
static TimestampFormatTrait.Format |
fromString(String strFormat)
Creates a timestamp format enum from the string defined in the model.
|
static TimestampFormatTrait.Format |
valueOf(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 ISO_8601
public static final TimestampFormatTrait.Format RFC_822
public static final TimestampFormatTrait.Format UNIX_TIMESTAMP
public static final TimestampFormatTrait.Format UNIX_TIMESTAMP_MILLIS
DateUtils.parseUnixTimestampMillisInstant(String)
. This is only used by the CBOR protocol currently.public static TimestampFormatTrait.Format[] values()
for (TimestampFormatTrait.Format c : TimestampFormatTrait.Format.values()) System.out.println(c);
public static TimestampFormatTrait.Format 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 TimestampFormatTrait.Format fromString(String strFormat)
strFormat
- String format.Copyright © 2019. All rights reserved.