クラス SimpleTimeZoneAwareLocaleContext
java.lang.ObjectSE
org.springframework.context.i18n.SimpleLocaleContext
org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext
- 実装されているすべてのインターフェース:
LocaleContext,TimeZoneAwareLocaleContext
public class SimpleTimeZoneAwareLocaleContext
extends SimpleLocaleContext
implements TimeZoneAwareLocaleContext
TimeZoneAwareLocaleContext インターフェースの単純な実装で、常に指定された Locale および TimeZone を返します。 メモ: ロケールのみを設定し、TimeZone を設定しない場合は、SimpleLocaleContext の使用をお勧めします。
- 導入:
- 4.0
- 作成者:
- Juergen Hoeller, Nicholas Williams
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明SimpleTimeZoneAwareLocaleContext(LocaleSE locale, TimeZoneSE timeZone) 指定されたロケールと TimeZone を公開する新しい SimpleTimeZoneAwareLocaleContext を作成します。メソッドのサマリー
クラス org.springframework.context.i18n.SimpleLocaleContext から継承されたメソッド
getLocaleクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.context.i18n.LocaleContext から継承されたメソッド
getLocale
コンストラクターの詳細
SimpleTimeZoneAwareLocaleContext
指定されたロケールと TimeZone を公開する新しい SimpleTimeZoneAwareLocaleContext を作成します。すべてのSimpleLocaleContext.getLocale()呼び出しは指定されたロケールを返し、すべてのgetTimeZone()呼び出しは指定された TimeZone を返します。- パラメーター:
locale- 公開するロケールtimeZone- 公開する TimeZone
メソッドの詳細
getTimeZone
インターフェースからコピーされた説明:TimeZoneAwareLocaleContext現在の TimeZone を返します。これは、実装戦略に応じて、固定または動的に決定できます。- 次で指定:
- インターフェース
TimeZoneAwareLocaleContextのgetTimeZone - 戻り値:
- 現在の TimeZone、または特定の TimeZone が関連付けられていない場合は
null
toString
- オーバーライド:
- クラス
SimpleLocaleContextのtoString