YearMonth.AdjustInto(ITemporal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adjusts the specified temporal object to have this year-month.
[Android.Runtime.Register("adjustInto", "(Ljava/time/temporal/Temporal;)Ljava/time/temporal/Temporal;", "", ApiSince=26)]
public Java.Time.Temporal.ITemporal? AdjustInto(Java.Time.Temporal.ITemporal? temporal);
[<Android.Runtime.Register("adjustInto", "(Ljava/time/temporal/Temporal;)Ljava/time/temporal/Temporal;", "", ApiSince=26)>]
abstract member AdjustInto : Java.Time.Temporal.ITemporal -> Java.Time.Temporal.ITemporal
override this.AdjustInto : Java.Time.Temporal.ITemporal -> Java.Time.Temporal.ITemporal
Parameters
- temporal
- ITemporal
the target object to be adjusted, not null
Returns
the adjusted object, not null
Implements
- Attributes
Remarks
Adjusts the specified temporal object to have this year-month. This returns a temporal object of the same observable type as the input with the year and month changed to be the same as this. The adjustment is equivalent to using Temporal.with(TemporalField, long) passing ChronoField.PROLEPTIC_MONTH as the field. If the specified temporal object does not use the ISO calendar system then a DateTimeException is thrown. In most cases, it is clearer to reverse the calling pattern by using Temporal.with(TemporalAdjuster): This instance is immutable and unaffected by this method call.
Java reference for java.time.YearMonth.adjustInto.