P - generic type of applicable format patternspublic interface FormatEngine<P extends ChronoPattern<P>>
This SPI-interface allows the creation of temporal formats via a builder-approach.
| Modifier and Type | Method and Description |
|---|---|
<T extends ChronoEntity<T>> |
create(Class<T> chronoType,
String formatPattern,
P patternType,
Locale locale)
Creates a new temporal format object applicable on given chronological type.
|
TemporalFormatter<? extends UniversalTime> |
createRFC1123()
Creates a specialized formatter for RFC-1123.
|
P |
getDefaultPatternType()
Yields the default pattern type.
|
boolean |
isSupported(Class<?> chronoType)
Helps to find out if given chronological type is supported.
|
<T extends ChronoEntity<T>> TemporalFormatter<T> create(Class<T> chronoType, String formatPattern, P patternType, Locale locale)
Creates a new temporal format object applicable on given chronological type.
T - generic chronological typechronoType - chronological type any creatable format must work withformatPattern - pattern of symbols to be used in formatting and parsingpatternType - type of pattern how to interprete symbolslocale - language and regional settingIllegalArgumentException - if given chronological type is not formattableTemporalFormatter<? extends UniversalTime> createRFC1123()
Creates a specialized formatter for RFC-1123.
P getDefaultPatternType()
Yields the default pattern type.
ChronoPatternboolean isSupported(Class<?> chronoType)
Helps to find out if given chronological type is supported.
chronoType - chronological type to be queriedtrue if given type is formattable else falseCopyright © 2014–2015. All rights reserved.