internal BasicPeriodFormatter(BasicPeriodFormatterFactory factory_0, String localeName_1, PeriodFormatterData data_2, IBM.ICU.Impl.Duration.BasicPeriodFormatterFactory.Customizations customs_3) { this.factory = factory_0; this.localeName = localeName_1; this.data = data_2; this.customs = customs_3; }
// package access only internal PeriodFormatterData GetData() { if (data == null) { data = ds.Get(localeName); } return(data); }
public virtual PeriodFormatter WithLocale(String localeName_0) { if (!this.localeName.Equals(localeName_0)) { PeriodFormatterData newData = factory.GetData(localeName_0); return(new BasicPeriodFormatter(factory, localeName_0, newData, customs)); } return(this); }
internal BasicPeriodBuilderFactory.Settings SetLocale(String localeName) { PeriodFormatterData data = outer_BasicPeriodBuilderFactory.ds.Get(localeName); return(this .SetAllowZero(data.AllowZero()) .SetWeeksAloneOnly(data.WeeksAloneOnly()) .SetAllowMilliseconds( data.UseMilliseconds() != IBM.ICU.Impl.Duration.Impl.DataRecord.EMilliSupport.NO)); }
/// <summary> /// Set the locale for this factory. /// </summary> /// public virtual PeriodFormatterFactory SetLocale(String localeName_0) { data = null; this.localeName = localeName_0; return(this); }