|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZoneRulesDataProvider
Provides access to a versioned set of time-zone rules from a single group.
Multiple providers of time-zone rules may be registered. Each provider will supply one to many zone IDs. No two providers may overlap in the set of zone IDs that they provide.
The values returned by the provider must never change over time. A new provider must be returned to return new regions or versions.
Many systems would like to receive new time-zone rules dynamically.
This must be implemented separately from this interface, typically using a listener.
Whenever the listener detects new rules it should call
ZoneRulesGroup.registerProvider(ZoneRulesDataProvider)
using a standard
immutable provider implementation.
This interface is a service provider that can be called by multiple threads. Implementations must be immutable and thread-safe.
Method Summary | |
---|---|
java.lang.String |
getGroupID()
Gets the time-zone group ID of the data available via this provider, such as 'TZDB'. |
java.util.Set<java.lang.String> |
getRegionIDs()
Gets the provided region IDs. |
java.util.Set<ZoneRulesVersion> |
getVersions()
Gets the provided rules, version by version. |
Method Detail |
---|
java.lang.String getGroupID()
Group IDs must match regex [A-Za-z0-9._-]+
.
Group IDs should use reverse domain name notation, like packages.
Group IDs without a dot are reserved.
java.util.Set<ZoneRulesVersion> getVersions()
java.util.Set<java.lang.String> getRegionIDs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |