言語

YearMonth.PlusYears(Int64) メソッド

定義

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

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

パラメーター

yearsToAdd
Int64

加算する年数は、負の値になる可能性があります。

返品

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

属性

注釈

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

Javaリファレンス。

適用対象