Package net.time4j.format
Interface LocalizedPatternSupport
- All Known Implementing Classes:
AnnualDate
,CalendarMonth
,CalendarQuarter
,CalendarWeek
,CalendarYear
,ChineseCalendar
,CopticCalendar
,EthiopianCalendar
,EthiopianTime
,HebrewCalendar
,HijriCalendar
,HinduCalendar
,HistoricCalendar
,IndianCalendar
,JapaneseCalendar
,JucheCalendar
,JulianCalendar
,KoreanCalendar
,MinguoCalendar
,PersianCalendar
,PlainDate
,PlainTime
,PlainTimestamp
,ThaiSolarCalendar
,VietnameseCalendar
public interface LocalizedPatternSupport
Marker interface which indicates support for general localized format patterns compatible with the CLDR-specification.
- Since:
- 3.10/4.7
- Author:
- Meno Hochschild
- See Also:
ChronoMerger.getFormatPattern(FormatStyle, Locale)
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getFormatPattern(FormatStyle style, Locale locale)
Defines a CLDR-compatible localized format pattern suitable for printing.default String
getFormatPattern(DisplayStyle style, Locale locale)
Deprecated.default boolean
Determines if any created format pattern uses the state of this instance.
-
Method Details
-
getFormatPattern
Deprecated.Defines a CLDR-compatible localized format pattern suitable for printing.
The default implementation delegates to the underlying chronology.
- Parameters:
style
- format stylelocale
- language and country setting- Returns:
- localized format pattern
- Since:
- 5.1
-
getFormatPattern
Defines a CLDR-compatible localized format pattern suitable for printing.
The default implementation delegates to the underlying chronology.
- Parameters:
style
- format stylelocale
- language and country setting- Returns:
- localized format pattern
- Since:
- 5.8
-
useDynamicFormatPattern
default boolean useDynamicFormatPattern()Determines if any created format pattern uses the state of this instance.
The default implementation returns
false
.- Returns:
true
if the methodgetFormatPattern
uses the state of this instance elsefalse
- Since:
- 5.1
- See Also:
getFormatPattern(FormatStyle, Locale)
-
getFormatPattern(FormatStyle, Locale)