public static enum DateFormatter.FormatType extends Enum<DateFormatter.FormatType>
Enum Constant and Description |
---|
DATETIME |
FULL |
LONG |
LONGAGE |
SHORT |
SHORTAGE |
TIMEONLY |
TIMESTAMP |
Modifier and Type | Method and Description |
---|---|
static DateFormatter.FormatType |
fromString(String s) |
String |
getKey() |
boolean |
isAge() |
static DateFormatter.FormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormatter.FormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormatter.FormatType DATETIME
public static final DateFormatter.FormatType FULL
public static final DateFormatter.FormatType LONG
public static final DateFormatter.FormatType LONGAGE
public static final DateFormatter.FormatType SHORT
public static final DateFormatter.FormatType SHORTAGE
public static final DateFormatter.FormatType TIMEONLY
public static final DateFormatter.FormatType TIMESTAMP
public static DateFormatter.FormatType[] values()
for (DateFormatter.FormatType c : DateFormatter.FormatType.values()) System.out.println(c);
public static DateFormatter.FormatType 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 boolean isAge()
public String getKey()
@Nonnull public static DateFormatter.FormatType fromString(@Nonnull String s)
Copyright © 2019 Atlassian. All rights reserved.