- java.lang.Object
-
- java.lang.Enum<FormatStyle>
-
- java.time.format.FormatStyle
-
- All Implemented Interfaces:
Serializable,Comparable<FormatStyle>
public enum FormatStyle extends Enum<FormatStyle>
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
DateTimeFormatterandDateTimeFormatterBuilderfor usage.- Implementation Requirements:
- This is an immutable and thread-safe enum.
- Since:
- 1.8
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormatStylevalueOf(String name)Returns the enum constant of this type with the specified name.static FormatStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-