Package com.helger.commons.locale
Interface LocaleCache.IMissingLocaleHandler
- Enclosing class:
LocaleCache
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Internal interface for a callback handler to be invoked, if a non-existing
locale is found.
- Since:
- 9.3.9
- Author:
- Philip Helger
-
Method Summary
-
Method Details
-
onMissingLocale
@Nullable Locale onMissingLocale(@Nonnull String sLocaleKey, @Nonnull String sLanguage, @Nonnull String sCountry, @Nonnull String sVariant) Called if a Locale is not yet present.- Parameters:
sLocaleKey- The key for the internal map. Nevernull.sLanguage- Language to use. Nevernull.sCountry- Country to use. Nevernull.sVariant- variant to use. Nevernull.- Returns:
- The created Locale or
null.
-