Integer.IComparable.CompareTo(Object) Method

Definition

Compares this value with the specified object for ordering.

int IComparable.CompareTo(Java.Lang.Object o);
abstract member Java.Lang.IComparable.CompareTo : Java.Lang.Object -> int
override this.Java.Lang.IComparable.CompareTo : Java.Lang.Object -> int

Parameters

o
Object

The object to compare with this value.

Returns

A signed value indicating the relative ordering of the values.

Implements

Remarks

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