语言

Instant.IsBefore(Instant) 方法

定义

检查此即时是否在指定的即时之前。

[Android.Runtime.Register("isBefore", "(Ljava/time/Instant;)Z", "", ApiSince=26)]
public bool IsBefore(Java.Time.Instant? otherInstant);
[<Android.Runtime.Register("isBefore", "(Ljava/time/Instant;)Z", "", ApiSince=26)>]
member this.IsBefore : Java.Time.Instant -> bool

参数

otherInstant
Instant

即时:要比较的另一个即时,而不是 null

返回

如果此即时位于指定即时之前,则为 true

特性

注解

检查此即时是否在指定的即时之前。 比较基于即时的时间线位置。

引发:如果 otherInstant 为 null,则为 NullPointerException

Android 参考。java.time.Instant.isBefore

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

适用于