Package com.alibaba.fastjson2.util
Enum DateUtils.DateTimeFormatPattern
- java.lang.Object
-
- java.lang.Enum<DateUtils.DateTimeFormatPattern>
-
- com.alibaba.fastjson2.util.DateUtils.DateTimeFormatPattern
-
- All Implemented Interfaces:
Serializable,Comparable<DateUtils.DateTimeFormatPattern>
- Enclosing class:
- DateUtils
public static enum DateUtils.DateTimeFormatPattern extends Enum<DateUtils.DateTimeFormatPattern>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_FORMAT_10_DASHDATE_FORMAT_10_DOTDATE_FORMAT_10_SLASHDATE_TIME_FORMAT_19_DASHDATE_TIME_FORMAT_19_DASH_TDATE_TIME_FORMAT_19_DOTDATE_TIME_FORMAT_19_SLASH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateUtils.DateTimeFormatPatternvalueOf(String name)Returns the enum constant of this type with the specified name.static DateUtils.DateTimeFormatPattern[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATE_FORMAT_10_DASH
public static final DateUtils.DateTimeFormatPattern DATE_FORMAT_10_DASH
-
DATE_FORMAT_10_SLASH
public static final DateUtils.DateTimeFormatPattern DATE_FORMAT_10_SLASH
-
DATE_FORMAT_10_DOT
public static final DateUtils.DateTimeFormatPattern DATE_FORMAT_10_DOT
-
DATE_TIME_FORMAT_19_DASH
public static final DateUtils.DateTimeFormatPattern DATE_TIME_FORMAT_19_DASH
-
DATE_TIME_FORMAT_19_DASH_T
public static final DateUtils.DateTimeFormatPattern DATE_TIME_FORMAT_19_DASH_T
-
DATE_TIME_FORMAT_19_SLASH
public static final DateUtils.DateTimeFormatPattern DATE_TIME_FORMAT_19_SLASH
-
DATE_TIME_FORMAT_19_DOT
public static final DateUtils.DateTimeFormatPattern DATE_TIME_FORMAT_19_DOT
-
-
Field Detail
-
pattern
public final String pattern
-
length
public final int length
-
-
Method Detail
-
values
public static DateUtils.DateTimeFormatPattern[] 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 (DateUtils.DateTimeFormatPattern c : DateUtils.DateTimeFormatPattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateUtils.DateTimeFormatPattern 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
-
-