语言

Short.CompareUnsigned(Int16, Int16) 方法

定义

比较两 short 个数值,以数字方式将值视为无符号值。

[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

参数

x
Int16

要比较的第一个short

y
Int16

要比较的第二个short

返回

0如果x == y值;小于0作为x < y无符号值的值,值大于0作为x > y无符号值

特性

注解

比较两 short 个数值,以数字方式将值视为无符号值。

已在 9 中添加。

适用于 . 的 java.lang.Short.compareUnsigned(short, short)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于