Class ResourceZoneRulesDataProvider.ResourceZoneRulesVersion
java.lang.Object
javax.time.calendar.zone.ResourceZoneRulesDataProvider.ResourceZoneRulesVersion
- All Implemented Interfaces:
ZoneRulesVersion
- Enclosing class:
ResourceZoneRulesDataProvider
static class ResourceZoneRulesDataProvider.ResourceZoneRulesVersion
extends Object
implements ZoneRulesVersion
Version of the rules.
ResourceZoneRulesVersion is thread-safe and immutable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceZoneRulesDataProviderProvider.private final String[]Region IDs.private final short[]Region IDs.private final StringVersion ID. -
Constructor Summary
ConstructorsConstructorDescriptionResourceZoneRulesVersion(ResourceZoneRulesDataProvider provider, String versionID, String[] regions, short[] ruleIndices) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the complete set of provided region IDs, such as 'Europe/Paris'.Gets the time-zone version ID of the data available via this provider, such as '2010e'.getZoneRules(String regionID) Gets the zone rules for the specified region ID.booleanisRegionID(String regionID) Checks if the region ID is valid.toString()
-
Field Details
-
provider
Provider. -
versionID
Version ID. -
regionArray
Region IDs. -
ruleIndices
private final short[] ruleIndicesRegion IDs.
-
-
Constructor Details
-
ResourceZoneRulesVersion
ResourceZoneRulesVersion(ResourceZoneRulesDataProvider provider, String versionID, String[] regions, short[] ruleIndices) Constructor.
-
-
Method Details
-
getVersionID
Description copied from interface:ZoneRulesVersionGets the time-zone version ID of the data available via this provider, such as '2010e'.Version IDs must match regex
[A-Za-z0-9._-]+.- Specified by:
getVersionIDin interfaceZoneRulesVersion- Returns:
- the ID of the group, never null
-
isRegionID
Description copied from interface:ZoneRulesVersionChecks if the region ID is valid.- Specified by:
isRegionIDin interfaceZoneRulesVersion- Parameters:
regionID- the region ID, null returns false- Returns:
- true if the specified region ID is valid for this group and version
-
getRegionIDs
Description copied from interface:ZoneRulesVersionGets the complete set of provided region IDs, such as 'Europe/Paris'.Region IDs must match regex
[A-Za-z0-9%@~/+._-]+.- Specified by:
getRegionIDsin interfaceZoneRulesVersion- Returns:
- the provided region IDs, unmodifiable, never null
-
getZoneRules
Description copied from interface:ZoneRulesVersionGets the zone rules for the specified region ID.The region ID should be one of those returned by
#getRegionIDs().- Specified by:
getZoneRulesin interfaceZoneRulesVersion- Parameters:
regionID- the region ID, not null- Returns:
- the matched zone rules, null if not found
-
toString
-