public class LocalizedNamedValueCacheImpl extends Object implements LocalizedNamedValueCache
LocalizedNamedValueCache used to cache LocalizedNamedValue items| Constructor and Description | 
|---|
LocalizedNamedValueCacheImpl(DataProvider dataProvider,
                            SdkTaskScheduler scheduler,
                            List<Locale> defaultLocales)
Initializes a new instance of  
LocalizedNamedValueCacheImpl | 
| Modifier and Type | Method and Description | 
|---|---|
LocalizedNamedValue | 
get(int id,
   List<Locale> locales)
Gets a  
LocalizedNamedValue with the specified translations | 
boolean | 
isValueDefined(int id)
Determines if the specified identifier exists in the current instance 
 | 
public LocalizedNamedValueCacheImpl(DataProvider dataProvider, SdkTaskScheduler scheduler, List<Locale> defaultLocales)
LocalizedNamedValueCacheImpldataProvider - - a DataProvider that will be used to get new datascheduler - - the SdkTaskScheduler used to perform repeating cache tasksdefaultLocales - - a List of all supported Localepublic LocalizedNamedValue get(int id, List<Locale> locales)
LocalizedNamedValue with the specified translationsget in interface LocalizedNamedValueCacheid - - the identifier of the localized valuelocales - - a List of Locale in which the data is requiredLocalizedNamedValue with the specified translationspublic boolean isValueDefined(int id)
isValueDefined in interface LocalizedNamedValueCacheid - - the identifier to checktrue if the value exists; otherwise falseCopyright © 2016–2025. All rights reserved.