public enum TimeFormat extends Enum<TimeFormat>
Enum Constant and Description |
---|
NONE
Don't format the timestamp as part of the message
|
RFC3339
Format the time using RFC 3339
|
SYSTEM
Format the time in a human readable format e.g.
|
Modifier and Type | Method and Description |
---|---|
static TimeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeFormat NONE
public static final TimeFormat RFC3339
public static final TimeFormat SYSTEM
public static TimeFormat[] values()
for (TimeFormat c : TimeFormat.values()) System.out.println(c);
public static TimeFormat 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 © 2021. All rights reserved.