Short.CompareUnsigned(Int16, Int16) Method

Definition

Compares two short values numerically treating the values as unsigned.

[Android.Runtime.Register("compareUnsigned", "(SS)I", "", ApiSince=31)]
public static int CompareUnsigned (short x, short y);
[<Android.Runtime.Register("compareUnsigned", "(SS)I", "", ApiSince=31)>]
static member CompareUnsigned : int16 * int16 -> int

Parameters

x
Int16

the first short to compare

y
Int16

the second short to compare

Returns

the value 0 if x == y; a value less than 0 if x < y as unsigned values; and a value greater than 0 if x > y as unsigned values

Attributes

Remarks

Compares two short values numerically treating the values as unsigned.

Added in 9.

Java documentation for java.lang.Short.compareUnsigned(short, short).

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