public class JsonbDateFormatter extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static DateTimeFormatter |
IJSON_DATE_FORMATTER |
| Constructor | Description |
|---|---|
JsonbDateFormatter(String format,
String locale) |
Creates an instance with format string and locale.
|
JsonbDateFormatter(DateTimeFormatter dateTimeFormatter,
String format,
String locale) |
Creates an instance with cached
DateTimeFormatter, format and locale. |
| Modifier and Type | Method | Description |
|---|---|---|
DateTimeFormatter |
getDateTimeFormatter() |
Creates an instance with cached instance of
DateTimeFormatter. |
static JsonbDateFormatter |
getDefault() |
|
String |
getFormat() |
Format string to be used either by formatter.
|
String |
getLocale() |
Locale to use with formatter.
|
boolean |
isDefault() |
public static final DateTimeFormatter IJSON_DATE_FORMATTER
public JsonbDateFormatter(DateTimeFormatter dateTimeFormatter, String format, String locale)
DateTimeFormatter, format and locale.dateTimeFormatter - Reused time formatter.format - Format in string.locale - Locale in string.public DateTimeFormatter getDateTimeFormatter()
DateTimeFormatter.public String getFormat()
Date with SimpleDateFormat,
which is not threadsafe.public String getLocale()
public static JsonbDateFormatter getDefault()
public boolean isDefault()
Copyright © 2018 Oracle Corporation. All rights reserved.