/** * Completes the build converting the builder to a set of time-zone rules. * <p> * Calling this method alters the state of the builder. * Further rules should not be added to this builder once this method is called. * * @param zoneId the time-zone ID, not null * @return the zone rules, not null * @throws IllegalStateException if no windows have been added * @throws IllegalStateException if there is only one rule defined as being forever for any given window */ public ZoneRules toRules(String zoneId) { return toRules(zoneId, new HashMap<Object, Object>()); }
/** * Completes the build converting the builder to a set of time-zone rules. * <p> * Calling this method alters the state of the builder. * Further rules should not be added to this builder once this method is called. * * @param zoneId the time-zone ID, not null * @return the zone rules, not null * @throws IllegalStateException if no windows have been added * @throws IllegalStateException if there is only one rule defined as being forever for any given window */ public ZoneRules toRules(String zoneId) { return toRules(zoneId, new HashMap<Object, Object>()); }
bld = tzdbZone.addToBuilder(bld, rules); ZoneRules buildRules = bld.toRules(zoneId, deduplicateMap); builtZones.put(zoneId, deduplicate(buildRules));
bld = tzdbZone.addToBuilder(bld, rules); ZoneRules buildRules = bld.toRules(zoneId, deduplicateMap); builtZones.put(zoneId, deduplicate(buildRules));