/** * 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; } }
/** * {@inheritDoc} */ @Override protected void saveState(Anything a) { super.saveState(a); saveState(a, DurationDataTypeConstants.LOCALE, locale.getLanguage(), null); }
/** * {@inheritDoc} */ @Override protected void saveState(Anything a) { super.saveState(a); saveState(a, DurationDataTypeConstants.LOCALE, locale.getLanguage(), null); }
/** * 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; } }