Megosztás a következőn keresztül:


IChronology.CompareTo(IChronology) Method

Definition

Compares this chronology to another chronology.

[Android.Runtime.Register("compareTo", "(Ljava/time/chrono/Chronology;)I", "GetCompareTo_Ljava_time_chrono_Chronology_Handler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public int CompareTo (Java.Time.Chrono.IChronology? other);
[<Android.Runtime.Register("compareTo", "(Ljava/time/chrono/Chronology;)I", "GetCompareTo_Ljava_time_chrono_Chronology_Handler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member CompareTo : Java.Time.Chrono.IChronology -> int

Parameters

other
IChronology

the other chronology to compare to, not null

Returns

the comparator value, negative if less, positive if greater

Attributes

Remarks

Compares this chronology to another chronology.

The comparison order first by the chronology ID string, then by any additional information specific to the subclass. It is "consistent with equals", as defined by Comparable.

Java documentation for java.time.chrono.Chronology.compareTo(java.time.chrono.Chronology).

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