java time Year from(TemporalAmountamount)方法从时间量获取Year的实例。1语法publicstaticYearfrom(TemporalAmountamount)2参数amount:
java time Year format(DateTimeFormatterformatter)方法使用指定的格式化程序格式化此年份。1语法publicStringformat(DateTimeFormatterfo
java time Year equals(YearotherYear)方法检查此Year是否等于指定的Year。1语法publicintequals(YearotherYear)2参数otherYear:另一年份
java time Year compareTo(Yearother)方法将此年份与另一年度进行比较。1语法publicintcompareTo(Yearother)2参数other:与另一年份比较,
java time Year atMonthDay(MonthDay)方法将当前Year对象与作为参数传递给它的month-day对象结合起来,以创建LocalDate对象。1语法publicLo
java time Year atMonth(Month)方法将当前year对象与作为参数传递给月份的month结合起来,以创建YearMonth对象。1语法publicYearMonthatMon
java time Year atMonth(int)方法将当前year对象与作为参数传递给月份的month结合起来以创建YearMonth对象。1语法publicYearMonthatMonth(i
java time Year atDay(intdayOfYear)方法将今年与一年中的日期相结合以创建LocalDate。1语法publicLocalDateatDay(intdayOfYear)2参数dayOf
java time Year adjustInto(Temporaltemporal)方法将指定的时态对象调整为今年。1语法publicTemporaladjustInto(Temporaltemporal)2参数tem
java time Year plusMonths()方法