| パッケージ | 説明 | 
|---|---|
| java.time | 
 
 日付、時間、インスタント、デュレーションのメインAPI。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static MonthDay | 
MonthDay.from(TemporalAccessor temporal)
時間的オブジェクトから 
MonthDayのインスタンスを取得します。 | 
static MonthDay | 
MonthDay.now()
デフォルトのタイムゾーンのシステム・クロックから現在の月-日を取得します。 
 | 
static MonthDay | 
MonthDay.now(Clock clock)
指定されたクロックから現在の月-日を取得します。 
 | 
static MonthDay | 
MonthDay.now(ZoneId zone)
指定されたタイムゾーンのシステム・クロックから現在の月-日を取得します。 
 | 
static MonthDay | 
MonthDay.of(int month, int dayOfMonth)
MonthDayのインスタンスを取得します。 | 
static MonthDay | 
MonthDay.of(Month month, int dayOfMonth)
MonthDayのインスタンスを取得します。 | 
static MonthDay | 
MonthDay.parse(CharSequence text)
--12-03などのテキスト文字列からMonthDayのインスタンスを取得します。 | 
static MonthDay | 
MonthDay.parse(CharSequence text, DateTimeFormatter formatter)
特定のフォーマッタを使用して、テキスト文字列から 
MonthDayのインスタンスを取得します。 | 
MonthDay | 
MonthDay.with(Month month)
月を変更して、この 
MonthDayのコピーを返します。 | 
MonthDay | 
MonthDay.withDayOfMonth(int dayOfMonth)
「月の日」を変更して、この 
MonthDayのコピーを返します。 | 
MonthDay | 
MonthDay.withMonth(int month)
月を変更して、この 
MonthDayのコピーを返します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
LocalDate | 
Year.atMonthDay(MonthDay monthDay)
この年を月-日と組み合せて 
LocalDateを作成します。 | 
int | 
MonthDay.compareTo(MonthDay other)
この月-日をもう一方の月-日と比較します。 
 | 
boolean | 
MonthDay.isAfter(MonthDay other)
この月-日が指定された月-日より後にあるか。 
 | 
boolean | 
MonthDay.isBefore(MonthDay other)
この月-日が指定された月-日より前にあるか。 
 | 
boolean | 
Year.isValidMonthDay(MonthDay monthDay)
月-日がこの年に対して有効であるかどうかを確認します。 
 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.