org.threeten.bp.zone

TzdbZoneRulesProvider

final class TzdbZoneRulesProvider extends ZoneRulesProvider

Loads time-zone rules for 'TZDB'.

This class is public for the service loader to access.

Specification for implementors

This class is immutable and thread-safe.

Exceptions thrown
ZoneRulesException

if unable to load

Linear Supertypes
ZoneRulesProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TzdbZoneRulesProvider
  2. ZoneRulesProvider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TzdbZoneRulesProvider()

    Creates an instance.

    Creates an instance. Created by the ServiceLoader.

    Exceptions thrown
    ZoneRulesException

    if unable to load

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def provideRefresh: Boolean

    SPI method to refresh the rules from the underlying data provider.

    SPI method to refresh the rules from the underlying data provider.

    This method provides the opportunity for a provider to dynamically recheck the underlying data provider to find the latest rules. This could be used to load new rules without stopping the JVM. Dynamic behavior is entirely optional and most providers do not support it.

    This implementation returns false.

    returns

    true if the rules were updated

    Attributes
    protected
    Definition Classes
    ZoneRulesProvider
    Exceptions thrown
    DateTimeException

    if an error occurs during the refresh

  18. def provideRules(zoneId: String, forCaching: Boolean): ZoneRules

    SPI method to get the rules for the zone ID.

    SPI method to get the rules for the zone ID.

    This loads the rules for the region and version specified. The version may be null to indicate the "latest" version.

    returns

    the rules, not null

    Attributes
    protected
    Definition Classes
    TzdbZoneRulesProviderZoneRulesProvider
    Exceptions thrown
    DateTimeException

    if rules cannot be obtained

  19. def provideVersions(zoneId: String): NavigableMap[String, ZoneRules]

    SPI method to get the history of rules for the zone ID.

    SPI method to get the history of rules for the zone ID.

    This returns a map of historical rules keyed by a version string. The exact meaning and format of the version is provider specific. The version must follow lexicographical order, thus the returned map will be order from the oldest known rules to the newest available rules. The default 'TZDB' group uses version numbering consisting of the year followed by a letter, such as '2009e' or '2012f'.

    Implementations must provide a result for each valid zone ID, however they do not have to provide a history of rules. Thus the map will always contain one element, and will only contain more than one element if historical rule information is available.

    The returned versions remain available and valid for the lifetime of the application. A dynamic provider may increase the set of versions as more data becomes available.

    zoneId

    the zone region ID as used by { @code ZoneId}, not null

    returns

    a modifiable copy of the history of the rules for the ID, sorted from oldest to newest, not null

    Attributes
    protected
    Definition Classes
    TzdbZoneRulesProviderZoneRulesProvider
    Exceptions thrown
    ZoneRulesException

    if history cannot be obtained for the zone ID

  20. def provideZoneIds: Set[String]

    SPI method to get the available zone IDs.

    SPI method to get the available zone IDs.

    This obtains the IDs that this ZoneRulesProvider provides. A provider should provide data for at least one region.

    The returned regions remain available and valid for the lifetime of the application. A dynamic provider may increase the set of regions as more data becomes available.

    returns

    the unmodifiable set of region IDs being provided, not null

    Attributes
    protected
    Definition Classes
    TzdbZoneRulesProviderZoneRulesProvider
    Exceptions thrown
    ZoneRulesException

    if a problem occurs while providing the IDs

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    TzdbZoneRulesProvider → AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ZoneRulesProvider

Inherited from AnyRef

Inherited from Any

Ungrouped