public void buildFieldConfig(FieldConfig fieldConfig) {DateTools.Resolution dateRes = null;Map<CharSequence, DateTools.Resolution> dateResMap = this.config.get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);if (dateResMap != null) {dateRes = dateResMap.get(fieldConfig.getField());}if (dateRes == null) {dateRes = this.config.get(ConfigurationKeys.DATE_RESOLUTION);}if (dateRes != null) {fieldConfig.set(ConfigurationKeys.DATE_RESOLUTION, dateRes);}}
public virtual void BuildFieldConfig(FieldConfig fieldConfig){DateTools.Resolution? dateRes = null;IDictionary<string, DateTools.Resolution?> dateResMap = this.config.Get(ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP);if (dateResMap != null){dateResMap.TryGetValue(fieldConfig.Field, out dateRes);}if (dateRes == null){dateRes = this.config.Get(ConfigurationKeys.DATE_RESOLUTION);}if (dateRes != null){fieldConfig.Set(ConfigurationKeys.DATE_RESOLUTION, dateRes.Value);}}