Udostępnij za pośrednictwem


Integer.CompareUnsigned(Int32, Int32) Method

Definition

Compares two int values numerically treating the values as unsigned.

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

Parameters

x
Int32

the first int to compare

y
Int32

the second int 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 int values numerically treating the values as unsigned.

Added in 1.8.

Java documentation for java.lang.Integer.compareUnsigned(int, int).

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