OptionalInt.OrElse(Int32) 方法

定义

如果存在值,则返回该值,否则返回 other

[Android.Runtime.Register("orElse", "(I)I", "", ApiSince=24)]
public int OrElse(int other);
[<Android.Runtime.Register("orElse", "(I)I", "", ApiSince=24)>]
member this.OrElse : int -> int

参数

other
Int32

要返回的值(如果没有值)

返回

如果存在,则为 值,否则为

属性

注解

如果存在值,则返回该值,否则返回 other

Java文档java.util.OptionalInt.orElse(.*int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于