共用方式為


IChronoLocalDate.IsEqual(IChronoLocalDate) Method

Definition

Checks if this date is equal to the specified date ignoring the chronology.

[Android.Runtime.Register("isEqual", "(Ljava/time/chrono/ChronoLocalDate;)Z", "GetIsEqual_Ljava_time_chrono_ChronoLocalDate_Handler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual bool IsEqual (Java.Time.Chrono.IChronoLocalDate? other);
[<Android.Runtime.Register("isEqual", "(Ljava/time/chrono/ChronoLocalDate;)Z", "GetIsEqual_Ljava_time_chrono_ChronoLocalDate_Handler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsEqual : Java.Time.Chrono.IChronoLocalDate -> bool
override this.IsEqual : Java.Time.Chrono.IChronoLocalDate -> bool

Parameters

other
IChronoLocalDate

the other date to compare to, not null

Returns

true if the underlying date is equal to the specified date

Attributes

Remarks

Checks if this date is equal to the specified date ignoring the chronology.

This method differs from the comparison in #compareTo in that it only compares the underlying date and not the chronology. This allows dates in different calendar systems to be compared based on the time-line position. This is equivalent to using date1.toEpochDay() == date2.toEpochDay().

This default implementation performs the comparison based on the epoch-day.

Java documentation for java.time.chrono.ChronoLocalDate.isEqual(java.time.chrono.ChronoLocalDate).

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