Android Guides | Samples

Java.Lang.Short.CompareTo Method

Compares this object to the specified short object to determine their relative order.

Syntax

[Android.Runtime.Register("compareTo", "(Ljava/lang/Short;)I", "")]
public Int32 CompareTo (Short object)

See Also

Parameters

object
the short object to compare this object to.

Exceptions

TypeReason
NullPointerExceptionif object is null.

Remarks

Compares this object to the specified short object to determine their relative order.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1