語言

Instant.IsAfter(Instant) 方法

定義

檢查此瞬間是否在指定時刻之後。

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

參數

otherInstant
Instant

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

傳回

若此瞬間位於指定時刻之後,則為真

屬性

備註

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

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

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

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

適用於