语言

Year.IsBefore(Year) 方法

定义

检查今年是否在指定年份之前。

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

参数

other
Year

要比较的另一年,而不是 null

返回

如果此点位于指定年份之前,则为 true

特性

注解

检查今年是否在指定年份之前。

Java参考java.time.Year.isBefore。

适用于