Interface CalendarProvider


public interface CalendarProvider

SPI-interface for the generic access to calendar chronologies.

Note: All implementations must have a public no-arg constructor.

Since:
4.27
Author:
Meno Hochschild
See Also:
ServiceLoader
  • Method Details

    • findChronology

      Optional<Chronology<? extends CalendarDate>> findChronology(String name)
      Obtains a suitable chronology for given name.

      The calendar name is either a simple calendar type or a combination of a calendar type and a variant separated by a hyphen. Examples: "iso8601", "persian" or "islamic-tbla".

      Parameters:
      name - calendar name
      Returns:
      calendar chronology