public enum DateInputAdapter extends Enum<DateInputAdapter>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
adapt(String date,
Locale locale)
Transforms date input to cover formats not supported in Java.
|
static DateInputAdapter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateInputAdapter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateInputAdapter INSTANCE
public static DateInputAdapter[] values()
for (DateInputAdapter c : DateInputAdapter.values()) System.out.println(c);
public static DateInputAdapter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String adapt(String date, Locale locale)
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.
Copyright © 2002-2017 Atlassian. All Rights Reserved.