类 SimpleTimeZoneAwareLocaleContext
java.lang.Object
cn.taketoday.core.i18n.SimpleLocaleContext
cn.taketoday.core.i18n.SimpleTimeZoneAwareLocaleContext
- 所有已实现的接口:
LocaleContext,TimeZoneAwareLocaleContext
public class SimpleTimeZoneAwareLocaleContext
extends SimpleLocaleContext
implements TimeZoneAwareLocaleContext
Simple implementation of the
TimeZoneAwareLocaleContext interface,
always returning a specified Locale and TimeZone.
Note: Prefer the use of SimpleLocaleContext when only setting
a Locale but no TimeZone.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Nicholas Williams
- 另请参阅:
-
构造器概要
构造器构造器说明SimpleTimeZoneAwareLocaleContext(Locale locale, TimeZone timeZone) Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone. -
方法概要
修饰符和类型方法说明Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy.toString()从类继承的方法 cn.taketoday.core.i18n.SimpleLocaleContext
getLocale从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.core.i18n.LocaleContext
getLocale
-
构造器详细资料
-
SimpleTimeZoneAwareLocaleContext
Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone. EverySimpleLocaleContext.getLocale()call will return the given Locale, and everygetTimeZone()call will return the given TimeZone.- 参数:
locale- the Locale to exposetimeZone- the TimeZone to expose
-
-
方法详细资料
-
getTimeZone
从接口复制的说明:TimeZoneAwareLocaleContextReturn the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy.- 指定者:
getTimeZone在接口中TimeZoneAwareLocaleContext- 返回:
- the current TimeZone, or
nullif no specific TimeZone associated
-
toString
- 覆盖:
toString在类中SimpleLocaleContext
-