Package org.elasticsearch.common.time
Enum FormatNames
java.lang.Object
java.lang.Enum<FormatNames>
org.elasticsearch.common.time.FormatNames
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FormatNames>
,java.lang.constant.Constable
public enum FormatNames extends java.lang.Enum<FormatNames>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<FormatNames>
WEEK_BASED_FORMATS
-
Method Summary
Modifier and Type Method Description static boolean
exist(java.lang.String format)
static FormatNames
forName(java.lang.String format)
java.lang.String
getCamelCaseName()
java.lang.String
getSnakeCaseName()
boolean
isCamelCase(java.lang.String format)
boolean
matches(java.lang.String format)
static FormatNames
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FormatNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
ISO8601
-
BASIC_DATE
-
BASIC_DATE_TIME
-
BASIC_DATE_TIME_NO_MILLIS
-
BASIC_ORDINAL_DATE
-
BASIC_ORDINAL_DATE_TIME
-
BASIC_ORDINAL_DATE_TIME_NO_MILLIS
-
BASIC_TIME
-
BASIC_TIME_NO_MILLIS
-
BASIC_T_TIME
-
BASIC_T_TIME_NO_MILLIS
-
BASIC_WEEK_DATE
-
BASIC_WEEK_DATE_TIME
-
BASIC_WEEK_DATE_TIME_NO_MILLIS
-
DATE
-
DATE_HOUR
-
DATE_HOUR_MINUTE
-
DATE_HOUR_MINUTE_SECOND
-
DATE_HOUR_MINUTE_SECOND_FRACTION
-
DATE_HOUR_MINUTE_SECOND_MILLIS
-
DATE_OPTIONAL_TIME
-
DATE_TIME
-
DATE_TIME_NO_MILLIS
-
HOUR
-
HOUR_MINUTE
-
HOUR_MINUTE_SECOND
-
HOUR_MINUTE_SECOND_FRACTION
-
HOUR_MINUTE_SECOND_MILLIS
-
ORDINAL_DATE
-
ORDINAL_DATE_TIME
-
ORDINAL_DATE_TIME_NO_MILLIS
-
TIME
-
TIME_NO_MILLIS
-
T_TIME
-
T_TIME_NO_MILLIS
-
WEEK_DATE
-
WEEK_DATE_TIME
-
WEEK_DATE_TIME_NO_MILLIS
-
WEEK_YEAR
-
WEEKYEAR
-
WEEK_YEAR_WEEK
-
WEEKYEAR_WEEK_DAY
-
YEAR
-
YEAR_MONTH
-
YEAR_MONTH_DAY
-
EPOCH_SECOND
-
EPOCH_MILLIS
-
STRICT_BASIC_WEEK_DATE
-
STRICT_BASIC_WEEK_DATE_TIME
-
STRICT_BASIC_WEEK_DATE_TIME_NO_MILLIS
-
STRICT_DATE
-
STRICT_DATE_HOUR
-
STRICT_DATE_HOUR_MINUTE
-
STRICT_DATE_HOUR_MINUTE_SECOND
-
STRICT_DATE_HOUR_MINUTE_SECOND_FRACTION
-
STRICT_DATE_HOUR_MINUTE_SECOND_MILLIS
-
STRICT_DATE_OPTIONAL_TIME
-
STRICT_DATE_OPTIONAL_TIME_NANOS
-
STRICT_DATE_TIME
-
STRICT_DATE_TIME_NO_MILLIS
-
STRICT_HOUR
-
STRICT_HOUR_MINUTE
-
STRICT_HOUR_MINUTE_SECOND
-
STRICT_HOUR_MINUTE_SECOND_FRACTION
-
STRICT_HOUR_MINUTE_SECOND_MILLIS
-
STRICT_ORDINAL_DATE
-
STRICT_ORDINAL_DATE_TIME
-
STRICT_ORDINAL_DATE_TIME_NO_MILLIS
-
STRICT_TIME
-
STRICT_TIME_NO_MILLIS
-
STRICT_T_TIME
-
STRICT_T_TIME_NO_MILLIS
-
STRICT_WEEK_DATE
-
STRICT_WEEK_DATE_TIME
-
STRICT_WEEK_DATE_TIME_NO_MILLIS
-
STRICT_WEEKYEAR
-
STRICT_WEEKYEAR_WEEK
-
STRICT_WEEKYEAR_WEEK_DAY
-
STRICT_YEAR
-
STRICT_YEAR_MONTH
-
STRICT_YEAR_MONTH_DAY
-
-
Field Details
-
WEEK_BASED_FORMATS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
exist
public static boolean exist(java.lang.String format) -
forName
-
matches
public boolean matches(java.lang.String format) -
isCamelCase
public boolean isCamelCase(java.lang.String format) -
getSnakeCaseName
public java.lang.String getSnakeCaseName() -
getCamelCaseName
public java.lang.String getCamelCaseName()
-