public final class TemporalAccessorParser extends ObjectSE implements Parser<TemporalAccessorSE>
DateTimeContextHolder.getFormatter(java.time.format.DateTimeFormatter, java.util.Locale)
, LocalDate.parse(CharSequence, java.time.format.DateTimeFormatter)
SE, LocalTime.parse(CharSequence, java.time.format.DateTimeFormatter)
SE, LocalDateTime.parse(CharSequence, java.time.format.DateTimeFormatter)
SE, ZonedDateTime.parse(CharSequence, java.time.format.DateTimeFormatter)
SE, OffsetDateTime.parse(CharSequence, java.time.format.DateTimeFormatter)
SE, OffsetTime.parse(CharSequence, java.time.format.DateTimeFormatter)
SEコンストラクターと説明 |
---|
TemporalAccessorParser(ClassSE<? extends TemporalAccessorSE> temporalAccessorType, DateTimeFormatterSE formatter) 指定された TemporalAccessor 型の新しい TemporalAccessorParser を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
TemporalAccessorSE | parse(StringSE text, LocaleSE locale) テキスト文字列を解析して T を生成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public TemporalAccessorParser(ClassSE<? extends TemporalAccessorSE> temporalAccessorType, DateTimeFormatterSE formatter)
temporalAccessorType
- 特定の TemporalAccessor クラス (LocalDate, LocalTime, LocalDateTime, ZonedDateTime, OffsetDateTime, OffsetTime)formatter
- 基本 DateTimeFormatter インスタンス public TemporalAccessorSE parse(StringSE text, LocaleSE locale) throws ParseExceptionSE
Parser
Parser<TemporalAccessorSE>
の parse
text
- テキスト文字列 locale
- 現在のユーザーロケール ParseExceptionSE
- java.text 解析ライブラリで解析例外が発生したとき