public enum TimestampFormat extends Enum<TimestampFormat>
Enum Constant and Description |
---|
ISO_8601 |
RFC_822 |
UNIX_TIMESTAMP |
UNIX_TIMESTAMP_IN_MILLIS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static TimestampFormat |
fromValue(String format) |
String |
getFormat() |
static TimestampFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimestampFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampFormat ISO_8601
public static final TimestampFormat UNIX_TIMESTAMP
public static final TimestampFormat UNIX_TIMESTAMP_IN_MILLIS
public static final TimestampFormat RFC_822
public static final TimestampFormat UNKNOWN
public static TimestampFormat[] values()
for (TimestampFormat c : TimestampFormat.values()) System.out.println(c);
public static TimestampFormat 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 String getFormat()
public static TimestampFormat fromValue(String format)
Copyright © 2024. All rights reserved.