public static enum DateUtil.DateFormat extends Enum<DateUtil.DateFormat>
| Enum Constant and Description |
|---|
DEFAULT_FORMAT |
LONG_FORMAT |
MID_FORMAT |
PLAIN_FORMAT |
SHORT_FORMAT |
VERBOSE_FORMAT |
YEAR_MONTH_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern() |
static DateUtil.DateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateUtil.DateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateUtil.DateFormat LONG_FORMAT
public static final DateUtil.DateFormat DEFAULT_FORMAT
public static final DateUtil.DateFormat MID_FORMAT
public static final DateUtil.DateFormat SHORT_FORMAT
public static final DateUtil.DateFormat YEAR_MONTH_FORMAT
public static final DateUtil.DateFormat VERBOSE_FORMAT
public static final DateUtil.DateFormat PLAIN_FORMAT
public static DateUtil.DateFormat[] values()
for (DateUtil.DateFormat c : DateUtil.DateFormat.values()) System.out.println(c);
public static DateUtil.DateFormat 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 getPattern()
Copyright © 2009–2014 DuraSpace. All rights reserved.