Top Description Fields Constructors Methods
java.time.format

public final Enum FormatStyle

extends Enum<FormatStyle>
Class Inheritance

Enumeration of the style of a localized date, time or date-time formatter.

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.

Since
1.8

Field Summary

Modifier and TypeField 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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FormatStyle
public static FormatStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FULLback 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'.

LONGback to summary
public static final FormatStyle LONG

Long text style, with lots of detail. For example, the format might be 'January 12, 1952'.

MEDIUMback to summary
public static final FormatStyle MEDIUM

Medium text style, with some detail. For example, the format might be 'Jan 12, 1952'.

SHORTback to summary
public static final FormatStyle SHORT

Short text style, typically numeric. For example, the format might be '12.13.52' or '3:30pm'.

Constructor Detail

FormatStyleback to summary
private FormatStyle()

Method Detail

valueOfback to summary
public static FormatStyle valueOf(String name)
valuesback to summary
public static FormatStyle[] values()