語言

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

瞬間:另一個可以比較的瞬間,不是空

傳回

若此瞬間發生在指定時刻之前,則為真

屬性

備註

檢查此瞬間是否早於指定時刻。 比較是基於瞬間的時間軸位置。

拋出:若 otherInstant 為 null,則使用 NullPointerException

Android 參考資料。java.time.Instant.isBefore

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於