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 |
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public LocalizedNamedValueImpl(int id, ConcurrentHashMap<Locale,String> descriptions, Locale defaultLocale)
LocalizedNamedValueImpl
id
- - the identifierdescriptions
- - a ConcurrentHashMap
containing various description translationsdefaultLocale
- - the Locale
which is used as defaultpublic String getDescription()
Locale
getDescription
in interface NamedValue
getDescription
in class NamedValueImpl
public String getDescription(Locale locale)
Locale
getDescription
in interface LocalizedNamedValue
locale
- - the Locale
in which the description should be providedLocale
if available;
otherwise nullCopyright © 2016–2025. All rights reserved.