public enum DateTimeType extends Enum<DateTimeType>
Modifier and Type | Method and Description |
---|---|
protected org.joda.time.format.DateTimeFormatter |
createDefaultJodaFormatter(AppConfig config) |
org.joda.time.format.DateTimeFormatter |
defaultJodaFormatter() |
protected abstract String |
defaultLongPattern(Locale locale) |
protected abstract String |
defaultMediumPattern(Locale locale) |
protected abstract String |
defaultPattern(AppConfig config) |
abstract String |
defaultPattern(AppConfig config,
Locale locale) |
String |
defaultPattern(DateTimeStyle style,
Locale locale) |
protected abstract String |
defaultShortPattern(Locale locale) |
static DateTimeType |
of(org.joda.time.ReadablePartial partial) |
String |
sanitizePattern(String dateTimePattern) |
String |
suffix() |
static DateTimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeType DATE
public static final DateTimeType TIME
public static final DateTimeType DATE_TIME
public static DateTimeType[] values()
for (DateTimeType c : DateTimeType.values()) System.out.println(c);
public static DateTimeType 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 suffix()
public org.joda.time.format.DateTimeFormatter defaultJodaFormatter()
public String defaultPattern(DateTimeStyle style, Locale locale)
protected org.joda.time.format.DateTimeFormatter createDefaultJodaFormatter(AppConfig config)
public static DateTimeType of(org.joda.time.ReadablePartial partial)
Copyright © 2014–2018 ActFramework. All rights reserved.