Share via


Temperature.CompareTo(Temperature) Method

Definition

Compares this object with the specified object for order.

[Android.Runtime.Register("compareTo", "(Landroid/health/connect/datatypes/units/Temperature;)I", "", ApiSince=34)]
public int CompareTo (Android.Health.Connect.DataTypes.Units.Temperature other);
[<Android.Runtime.Register("compareTo", "(Landroid/health/connect/datatypes/units/Temperature;)I", "", ApiSince=34)>]
member this.CompareTo : Android.Health.Connect.DataTypes.Units.Temperature -> int

Parameters

other
Temperature

the object to be compared.

Returns

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Attributes

Remarks

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Java documentation for android.health.connect.datatypes.units.Temperature.compareTo(android.health.connect.datatypes.units.Temperature).

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