类 SimpleLocaleContext

    • 构造器详细资料

      • SimpleLocaleContext

        public SimpleLocaleContext​(Locale locale)
        Create a new SimpleLocaleContext that exposes the specified Locale. Every getLocale() call will return this Locale.
        参数:
        locale - the Locale to expose
    • 方法详细资料

      • getLocale

        public Locale getLocale()
        从接口复制的说明: LocaleContext
        Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
        指定者:
        getLocale 在接口中 LocaleContext
        返回:
        the current Locale, or null if no specific Locale associated