Integer.Max(Int32, Int32) 方法

定义

返回两 int 个值中的更大值,就像通过调用 Math#max(int, int) Math.max一样。

[Android.Runtime.Register("max", "(II)I", "", ApiSince=24)]
public static int Max(int a, int b);
[<Android.Runtime.Register("max", "(II)I", "", ApiSince=24)>]
static member Max : int * int -> int

参数

a
Int32

第一个操作数

b
Int32

第二个操作数

返回

ab

属性

注解

返回两 int 个值中的更大值,就像通过调用 Math#max(int, int) Math.max一样。

已在 1.8 中添加。

适用于 . 的 java.lang.Integer.max(int, int)Java 文档

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

适用于