言語

YearMonth.PlusMonths(Int64) メソッド

定義

指定した月数が加算された、この YearMonth のコピーを返します。

[Android.Runtime.Register("plusMonths", "(J)Ljava/time/YearMonth;", "", ApiSince=26)]
public Java.Time.YearMonth? PlusMonths(long monthsToAdd);
[<Android.Runtime.Register("plusMonths", "(J)Ljava/time/YearMonth;", "", ApiSince=26)>]
member this.PlusMonths : int64 -> Java.Time.YearMonth

パラメーター

monthsToAdd
Int64

追加する月は負の値になる可能性があります。

返品

今年の月に基づく YearMonth。月は null ではなく追加されます

属性

注釈

指定した月数が加算された、この YearMonth のコピーを返します。 このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。

Javaリファレンス。

適用対象