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 Details

    • getFormatPattern

      @Deprecated default String getFormatPattern(DisplayStyle style, Locale locale)

      Defines a CLDR-compatible localized format pattern suitable for printing.

      The default implementation delegates to the underlying chronology.

      Parameters:
      style - format style
      locale - language and country setting
      Returns:
      localized format pattern
      Since:
      5.1
    • getFormatPattern

      default String getFormatPattern(FormatStyle style, Locale locale)

      Defines a CLDR-compatible localized format pattern suitable for printing.

      The default implementation delegates to the underlying chronology.

      Parameters:
      style - format style
      locale - 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 method getFormatPattern uses the state of this instance else false
      Since:
      5.1
      See Also:
      getFormatPattern(FormatStyle, Locale)