Package com.smartsheet.api.models.format
Enum DateFormat
- java.lang.Object
-
- java.lang.Enum<DateFormat>
-
- com.smartsheet.api.models.format.DateFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DateFormat>
public enum DateFormat extends java.lang.Enum<DateFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description D_MMM_YYYY
D_MMMM
DWWW_DD_MMM_YYYY
DWWW_MM_DD_YYYY
DWWWW_MMMM_D_YYYY
LOCALE_BASED
MMM_D_YYYY
MMMM_D
MMMM_D_YYYY
YYYY_MM_DD_DOT
YYYY_MM_DD_HYPHEN
-
Field Summary
Fields Modifier and Type Field Description static DateFormat
DEFAULT
The default setting when theFormat
forDateFormat
is null;
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCALE_BASED
public static final DateFormat LOCALE_BASED
-
MMMM_D_YYYY
public static final DateFormat MMMM_D_YYYY
-
MMM_D_YYYY
public static final DateFormat MMM_D_YYYY
-
D_MMM_YYYY
public static final DateFormat D_MMM_YYYY
-
YYYY_MM_DD_HYPHEN
public static final DateFormat YYYY_MM_DD_HYPHEN
-
YYYY_MM_DD_DOT
public static final DateFormat YYYY_MM_DD_DOT
-
DWWWW_MMMM_D_YYYY
public static final DateFormat DWWWW_MMMM_D_YYYY
-
DWWW_DD_MMM_YYYY
public static final DateFormat DWWW_DD_MMM_YYYY
-
DWWW_MM_DD_YYYY
public static final DateFormat DWWW_MM_DD_YYYY
-
MMMM_D
public static final DateFormat MMMM_D
-
D_MMMM
public static final DateFormat D_MMMM
-
-
Field Detail
-
DEFAULT
public static final DateFormat DEFAULT
The default setting when theFormat
forDateFormat
is null;
-
-
Method Detail
-
values
public static 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 (DateFormat c : 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 DateFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-