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.
@FunctionalInterface public static interface LocaleCache.IMissingLocaleHandler
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocaleonMissingLocale(String sLocaleKey, String sLanguage, String sCountry, String sVariant)Called if a Locale is not yet present.
-
-
-
Method Detail
-
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.
-
-