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 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. Never null.
        sLanguage - Language to use. Never null.
        sCountry - Country to use. Never null.
        sVariant - variant to use. Never null.
        Returns:
        The created Locale or null.