クラス
java.time.MonthDayの使用
-
java.timeでのMonthDayの使用
修飾子と型メソッド説明static MonthDay
MonthDay.from
(TemporalAccessor temporal) 時間的オブジェクトからMonthDay
のインスタンスを取得します。static MonthDay
MonthDay.now()
デフォルトのタイムゾーンのシステム・クロックから現在の月-日を取得します。static MonthDay
指定されたクロックから現在の月-日を取得します。static MonthDay
指定されたタイムゾーンのシステム・クロックから現在の月-日を取得します。static MonthDay
MonthDay.of
(int month, int dayOfMonth) MonthDay
のインスタンスを取得します。static MonthDay
MonthDay
のインスタンスを取得します。static MonthDay
MonthDay.parse
(CharSequence text) --12-03
などのテキスト文字列からMonthDay
のインスタンスを取得します。static MonthDay
MonthDay.parse
(CharSequence text, DateTimeFormatter formatter) 特定のフォーマッタを使用して、テキスト文字列からMonthDay
のインスタンスを取得します。月を変更して、このMonthDay
のコピーを返します。MonthDay.withDayOfMonth
(int dayOfMonth) 「月の日」を変更して、このMonthDay
のコピーを返します。MonthDay.withMonth
(int month) 月を変更して、このMonthDay
のコピーを返します。修飾子と型メソッド説明Year.atMonthDay
(MonthDay monthDay) この年を月-日と組み合せてLocalDate
を作成します。int
この月-日を別の月-日と比較します。boolean
この月/日が、指定された月/日より後にあるかどうかをチェックします。boolean
この月/日が、指定された月/日より前にあるかどうかをチェックします。boolean
Year.isValidMonthDay
(MonthDay monthDay) 月-日がこの年に対して有効であるかどうかを確認します。