These styles are used when obtaining a date-time style from configuration.
See DateTimeFormatter and DateTimeFormatterBuilder for usage.
Implementation Specification
This is an immutable and thread-safe enum.
| Modifier and Type | Field and Description |
|---|---|
| public static final FormatStyle | FULL
Full text style, with the most detail. |
| public static final FormatStyle | LONG
Long text style, with lots of detail. |
| public static final FormatStyle | MEDIUM
Medium text style, with some detail. |
| public static final FormatStyle | SHORT
Short text style, typically numeric. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FormatStyle | |
| public static FormatStyle[] |
| FULL | back to summary |
|---|---|
| public static final FormatStyle FULL Full text style, with the most detail. For example, the format might be 'Tuesday, April 12, 1952 AD' or '3:30:42pm PST'. | |
| LONG | back to summary |
|---|---|
| public static final FormatStyle LONG Long text style, with lots of detail. For example, the format might be 'January 12, 1952'. | |
| MEDIUM | back to summary |
|---|---|
| public static final FormatStyle MEDIUM Medium text style, with some detail. For example, the format might be 'Jan 12, 1952'. | |
| SHORT | back to summary |
|---|---|
| public static final FormatStyle SHORT Short text style, typically numeric. For example, the format might be '12.13.52' or '3:30pm'. | |
| FormatStyle | back to summary |
|---|---|
| private FormatStyle() | |
| valueOf | back to summary |
|---|---|
| public static FormatStyle valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FormatStyle[] values() | |