|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZoneRulesVersion
A version of time-zone rules from a single group.
Zone rule data is provided by organizations or groups. Each group typically provides multiple versions of their data over time. This interface models one version of data.
This interface is a service provider that can be called by multiple threads. Implementations must be immutable and thread-safe.
Implementations are responsible for caching.
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getRegionIDs()
Gets the complete set of provided region IDs, such as 'Europe/Paris'. |
java.lang.String |
getVersionID()
Gets the time-zone version ID of the data available via this provider, such as '2010e'. |
ZoneRules |
getZoneRules(java.lang.String regionID)
Gets the zone rules for the specified region ID. |
boolean |
isRegionID(java.lang.String regionID)
Checks if the region ID is valid. |
Method Detail |
---|
java.lang.String getVersionID()
Version IDs must match regex [A-Za-z0-9._-]+
.
boolean isRegionID(java.lang.String regionID)
regionID
- the region ID, null returns false
java.util.Set<java.lang.String> getRegionIDs()
Region IDs must match regex [A-Za-z0-9%@~/+._-]+
.
ZoneRules getZoneRules(java.lang.String regionID)
The region ID should be one of those returned by #getRegionIDs()
.
regionID
- the region ID, not null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |