@DeprecatedSE public class DateTimeFormatterFactory extends ObjectSE
DateTimeFormatter
を作成するファクトリ。コンストラクターと説明 |
---|
DateTimeFormatterFactory() 使用すべきではありません。 新しい DateTimeFormatterFactory インスタンスを作成します。 |
DateTimeFormatterFactory(StringSE pattern) 使用すべきではありません。 新しい DateTimeFormatterFactory インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
DateTimeFormatter | createDateTimeFormatter() 使用すべきではありません。 このファクトリを使用して新しい DateTimeFormatter を作成します。 |
DateTimeFormatter | createDateTimeFormatter(DateTimeFormatter fallbackFormatter) 使用すべきではありません。 このファクトリを使用して新しい DateTimeFormatter を作成します。 |
void | setIso(DateTimeFormat.ISO iso) 使用すべきではありません。 日付値のフォーマットに使用する ISO フォーマットを設定します。 |
void | setPattern(StringSE pattern) 使用すべきではありません。 日付値のフォーマットに使用するパターンを設定します。 |
void | setStyle(StringSE style) 使用すべきではありません。 日付値のフォーマットに使用する 2 つの文字を Joda-Time スタイルで設定します。 |
void | setTimeZone(TimeZoneSE timeZone) 使用すべきではありません。 TimeZone を設定して、日付値がある場合はそれを正規化します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public DateTimeFormatterFactory()
DateTimeFormatterFactory
インスタンスを作成します。public DateTimeFormatterFactory(StringSE pattern)
DateTimeFormatterFactory
インスタンスを作成します。pattern
- 日付値のフォーマットに使用するパターン public void setPattern(StringSE pattern)
pattern
- フォーマットパターン public void setIso(DateTimeFormat.ISO iso)
iso
- ISO フォーマット public void setStyle(StringSE style)
最初の文字は日付スタイルに使用されます。2 番目は時間スタイルです。サポートされている文字は次のとおりです。
style
- セット {"S"、"M"、"L"、"F"、"-"} の 2 文字 public void setTimeZone(TimeZoneSE timeZone)
TimeZone
を設定して、日付値がある場合はそれを正規化します。timeZone
- タイムゾーン public DateTimeFormatter createDateTimeFormatter()
DateTimeFormatter
を作成します。 特定のパターンまたはスタイルが定義されていない場合は、medium date time format
が使用されます。
createDateTimeFormatter(DateTimeFormatter)
public DateTimeFormatter createDateTimeFormatter(DateTimeFormatter fallbackFormatter)
DateTimeFormatter
を作成します。 特定のパターンまたはスタイルが定義されていない場合、提供された fallbackFormatter
が使用されます。
fallbackFormatter
- 特定のファクトリプロパティが設定されていない場合に使用するフォールバックフォーマッタ