public class LocalizedNamedValueCacheImpl extends Object implements LocalizedNamedValueCache
LocalizedNamedValueCache
used to cache LocalizedNamedValue
itemsConstructor 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)
LocalizedNamedValueCacheImpl
dataProvider
- - a DataProvider
that will be used to get new datascheduler
- - the SdkTaskScheduler
used to perform repeating cache tasksdefaultLocales
- - a List
of all supported Locale
public LocalizedNamedValue get(int id, List<Locale> locales)
LocalizedNamedValue
with the specified translationsget
in interface LocalizedNamedValueCache
id
- - 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 LocalizedNamedValueCache
id
- - the identifier to checktrue
if the value exists; otherwise false
Copyright © 2016–2025. All rights reserved.