public class LocalizedNamedValueImpl extends NamedValueImpl implements LocalizedNamedValue
LocalizedNamedValue| Constructor and Description |
|---|
LocalizedNamedValueImpl(int id,
ConcurrentHashMap<Locale,String> descriptions,
Locale defaultLocale)
Initializes a new instance of
LocalizedNamedValueImpl |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the current instance description in the default
Locale |
String |
getDescription(Locale locale)
Returns the current instance description in the requested
Locale |
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic LocalizedNamedValueImpl(int id,
ConcurrentHashMap<Locale,String> descriptions,
Locale defaultLocale)
LocalizedNamedValueImplid - - the identifierdescriptions - - a ConcurrentHashMap containing various description translationsdefaultLocale - - the Locale which is used as defaultpublic String getDescription()
LocalegetDescription in interface NamedValuegetDescription in class NamedValueImplpublic String getDescription(Locale locale)
LocalegetDescription in interface LocalizedNamedValuelocale - - the Locale in which the description should be providedLocale if available;
otherwise nullCopyright © 2016–2025. All rights reserved.