Package com.atlassian.jira.datetime
Enum Class DateInputAdapter
- All Implemented Interfaces:
Serializable
,Comparable<DateInputAdapter>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionTransforms date input to cover formats not supported in Java.static DateInputAdapter
Returns the enum constant of this class with the specified name.static DateInputAdapter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
adapt
Transforms date input to cover formats not supported in Java.Some rules for formatting dates have changed across Java versions. Certain input values which were working in JIRA before, don't work anymore. We could tell customers to HDFU but let's be friendly and nice instead.
For example, this will change "1/Mrz/2017" to "1/Mär/2017". Only the latter is supported since Java 8, but some people got used to using the former.
-