/* */ package com.ibm.icu.impl.duration;
/* */
/* */ import java.util.TimeZone;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ abstract class PeriodBuilderImpl
/* */ implements PeriodBuilder
/* */ {
/* */ protected BasicPeriodBuilderFactory.Settings settings;
/* */
/* */ public Period create(long duration)
/* */ {
/* 311 */ return createWithReferenceDate(duration, System.currentTimeMillis());
/* */ }
/* */
/* */ public long approximateDurationOf(TimeUnit unit) {
/* 315 */ return BasicPeriodBuilderFactory.approximateDurationOf(unit);
/* */ }
/* */
/* */ public Period createWithReferenceDate(long duration, long referenceDate) {
/* 319 */ boolean inPast = duration < 0L;
/* 320 */ if (inPast) {
/* 321 */ duration = -duration;
/* */ }
/* 323 */ Period ts = this.settings.createLimited(duration, inPast);
/* 324 */ if (ts == null) {
/* 325 */ ts = handleCreate(duration, referenceDate, inPast);
/* 326 */ if (ts == null) {
/* 327 */ ts = Period.lessThan(1.0F, this.settings.effectiveMinUnit()).inPast(inPast);
/* */ }
/* */ }
/* 330 */ return ts;
/* */ }
/* */
/* */ public PeriodBuilder withTimeZone(TimeZone timeZone)
/* */ {
/* 335 */ return this;
/* */ }
/* */
/* */ public PeriodBuilder withLocale(String localeName) {
/* 339 */ BasicPeriodBuilderFactory.Settings newSettings = this.settings.setLocale(localeName);
/* 340 */ if (newSettings != this.settings) {
/* 341 */ return withSettings(newSettings);
/* */ }
/* 343 */ return this;
/* */ }
/* */
/* */ protected abstract PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings paramSettings);
/* */
/* */ protected abstract Period handleCreate(long paramLong1, long paramLong2, boolean paramBoolean);
/* */
/* */ protected PeriodBuilderImpl(BasicPeriodBuilderFactory.Settings settings)
/* */ {
/* 352 */ this.settings = settings;
/* */ }
/* */ }
/* Location: C:\Users\Ethan\Desktop\FontZip\FontTool\sfnttool.jar!\com\ibm\icu\impl\duration\PeriodBuilderImpl.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/