Package net.fortuna.ical4j.model
Class DefaultZoneRulesProvider
- java.lang.Object
-
- java.time.zone.ZoneRulesProvider
-
- net.fortuna.ical4j.model.DefaultZoneRulesProvider
-
public class DefaultZoneRulesProvider extends ZoneRulesProvider
A defaultZoneRulesProvider
implementation for included timezone definitions. To avoid conflicting with the standard Java zone rules this provider maintains an internal map of local zone ids to globally unique ids. NOTE: Globally unique zone identifiers are transient and will be regenerated for each instance of this class. They are only used to support registration and use of alternative definitions in the scope of this library.
-
-
Constructor Summary
Constructors Constructor Description DefaultZoneRulesProvider()
DefaultZoneRulesProvider(TimeZoneLoader timeZoneLoader, Map<String,String> zoneIdMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
provideRefresh()
protected ZoneRules
provideRules(String zoneId, boolean forCaching)
protected NavigableMap<String,ZoneRules>
provideVersions(String zoneId)
protected Set<String>
provideZoneIds()
-
Methods inherited from class java.time.zone.ZoneRulesProvider
getAvailableZoneIds, getRules, getVersions, refresh, registerProvider
-
-
-
-
Constructor Detail
-
DefaultZoneRulesProvider
public DefaultZoneRulesProvider()
-
DefaultZoneRulesProvider
public DefaultZoneRulesProvider(TimeZoneLoader timeZoneLoader, Map<String,String> zoneIdMap)
-
-
Method Detail
-
provideZoneIds
protected Set<String> provideZoneIds()
- Specified by:
provideZoneIds
in classZoneRulesProvider
-
provideRules
protected ZoneRules provideRules(String zoneId, boolean forCaching)
- Specified by:
provideRules
in classZoneRulesProvider
-
provideVersions
protected NavigableMap<String,ZoneRules> provideVersions(String zoneId)
- Specified by:
provideVersions
in classZoneRulesProvider
-
provideRefresh
protected boolean provideRefresh()
- Overrides:
provideRefresh
in classZoneRulesProvider
-
-