public interface ZoneRulesVersion
Zone rule data is provided by organizations or groups. Each group provides multiple versions of their data over time. This interface models one version of data.
ZoneRulesVersion is a service provider interface that can be called by multiple threads. Implementations must be immutable and thread-safe.
Implementations are responsible for caching.
Modifier and Type | Method and Description |
---|---|
Set<String> |
getRegionIDs()
Gets the complete set of provided region IDs, such as 'Europe/Paris'.
|
String |
getVersionID()
Gets the time-zone version ID of the data available via this provider, such as '2010e'.
|
ZoneRules |
getZoneRules(String regionID)
Gets the zone rules for the specified region ID.
|
boolean |
isRegionID(String regionID)
Checks if the region ID is valid.
|
String getVersionID()
Version IDs must match regex [A-Za-z0-9._-]+
.
boolean isRegionID(String regionID)
regionID
- the region ID, null returns falseSet<String> getRegionIDs()
Region IDs must match regex [A-Za-z0-9%@~/+._-]+
.
Copyright © 2014. All rights reserved.