Class SimpleLocaleContext

    • Constructor Detail

      • SimpleLocaleContext

        public SimpleLocaleContext​(Locale locale)
        Create a new SimpleLocaleContext that exposes the specified Locale. Every getLocale() call will return this Locale.
        Parameters:
        locale - the Locale to expose
    • Method Detail

      • getLocale

        public Locale getLocale()
        Description copied from interface: LocaleContext
        Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
        Specified by:
        getLocale in interface LocaleContext
        Returns:
        the current Locale, or null if no specific Locale associated