Package org.duracloud.common.util
Enum DateUtil.DateFormat
- java.lang.Object
-
- java.lang.Enum<DateUtil.DateFormat>
-
- org.duracloud.common.util.DateUtil.DateFormat
-
- All Implemented Interfaces:
Serializable,Comparable<DateUtil.DateFormat>
- Enclosing class:
- DateUtil
public static enum DateUtil.DateFormat extends Enum<DateUtil.DateFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_FORMATLONG_FORMATMID_FORMATPLAIN_FORMATSHORT_FORMATVERBOSE_FORMATYEAR_MONTH_FORMAT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPattern()static DateUtil.DateFormatvalueOf(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.
-
-
-
Enum Constant Detail
-
LONG_FORMAT
public static final DateUtil.DateFormat LONG_FORMAT
-
DEFAULT_FORMAT
public static final DateUtil.DateFormat DEFAULT_FORMAT
-
MID_FORMAT
public static final DateUtil.DateFormat MID_FORMAT
-
SHORT_FORMAT
public static final DateUtil.DateFormat SHORT_FORMAT
-
YEAR_MONTH_FORMAT
public static final DateUtil.DateFormat YEAR_MONTH_FORMAT
-
VERBOSE_FORMAT
public static final DateUtil.DateFormat VERBOSE_FORMAT
-
PLAIN_FORMAT
public static final DateUtil.DateFormat PLAIN_FORMAT
-
-
Method Detail
-
values
public static DateUtil.DateFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateUtil.DateFormat c : DateUtil.DateFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateUtil.DateFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPattern
public String getPattern()
-
-