共用方式為


IChronoLocalDate.TimeLineOrder Method

Definition

Gets a comparator that compares ChronoLocalDate in time-line order ignoring the chronology.

[Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)]
public static Java.Util.IComparator? TimeLineOrder ();
[<Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)>]
static member TimeLineOrder : unit -> Java.Util.IComparator

Returns

a comparator that compares in time-line order ignoring the chronology

Attributes

Remarks

Gets a comparator that compares ChronoLocalDate in time-line order ignoring the chronology.

This comparator 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 position of the date on the local time-line. The underlying comparison is equivalent to comparing the epoch-day.

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

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