다음을 통해 공유


IChronoPeriod.Plus(ITemporalAmount) Method

Definition

Returns a copy of this period with the specified period added.

[Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/chrono/ChronoPeriod;", "GetPlus_Ljava_time_temporal_TemporalAmount_Handler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.Chrono.IChronoPeriod? Plus (Java.Time.Temporal.ITemporalAmount? amountToAdd);
[<Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/chrono/ChronoPeriod;", "GetPlus_Ljava_time_temporal_TemporalAmount_Handler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Plus : Java.Time.Temporal.ITemporalAmount -> Java.Time.Chrono.IChronoPeriod

Parameters

amountToAdd
ITemporalAmount

the period to add, not null

Returns

a ChronoPeriod based on this period with the requested period added, not null

Attributes

Remarks

Returns a copy of this period with the specified period added.

If the specified amount is a ChronoPeriod then it must have the same chronology as this period. Implementations may choose to accept or reject other TemporalAmount implementations.

This instance is immutable and unaffected by this method call.

Java documentation for java.time.chrono.ChronoPeriod.plus(java.time.temporal.TemporalAmount).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to