Interface TemporalStyle
- All Known Subinterfaces:
TemporalStyle.DateTime,TemporalStyle.None
Represents the style of a temporal component.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents temporal style with a date and/or time style.static interfaceRepresents temporal style with no styling. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic TemporalStyle.Nonenone()Returns a temporal style that does not format the temporal component.static TemporalStyle.DateTimeofDate(FormatStyle style) Creates a new datetime temporal style with the specified date style.static TemporalStyle.DateTimeofDateTime(FormatStyle style) Creates a new datetime temporal style with the specified date and time styles.static TemporalStyle.DateTimeofDateTime(FormatStyle dateStyle, FormatStyle timeStyle) Creates a new datetime temporal style with the specified date and time styles.static TemporalStyle.DateTimeofTime(FormatStyle style) Creates a new datetime temporal style with the specified time style.
-
Method Details
-
ofDate
Creates a new datetime temporal style with the specified date style.- Parameters:
style- the date style- Returns:
- the datetime temporal style
-
ofTime
Creates a new datetime temporal style with the specified time style.- Parameters:
style- the time style- Returns:
- the datetime temporal style
-
ofDateTime
Creates a new datetime temporal style with the specified date and time styles.- Parameters:
dateStyle- the date styletimeStyle- the time style- Returns:
- the datetime temporal style
-
ofDateTime
Creates a new datetime temporal style with the specified date and time styles.- Parameters:
style- the date and time style- Returns:
- the datetime temporal style
-
none
Returns a temporal style that does not format the temporal component.
-