/** * Gets a (cached) duration data type. * * @param locale * the locale the duration data type uses. * @return the corresponding duration data type. */ public ULCDurationDataType getTranslationDataType(Locale locale) { ULCDurationDataType dataType = dataTypeStore.get(locale); if (dataType == null) { dataType = new ULCDurationDataType(locale); dataTypeStore.put(locale, dataType); } return dataType; } }
/** * Gets a (cached) duration data type. * * @param locale * the locale the duration data type uses. * @return the corresponding duration data type. */ public ULCDurationDataType getTranslationDataType(Locale locale) { ULCDurationDataType dataType = dataTypeStore.get(locale); if (dataType == null) { dataType = new ULCDurationDataType(locale); dataTypeStore.put(locale, dataType); } return dataType; } }