| 1 |
Temporal adjustInto(Temporal temporal) |
調整指定的時間對象以獲得年份。 |
| 2 |
LocalDate atDay(int dayOfYear) |
將年份與年中的日期相結合,創建一個LocalDate。 |
| 3 |
YearMonth atMonth(int month) |
將年份與一個月份結合起來創造一個YearMonth。 |
| 4 |
YearMonth atMonth(Month month) |
將年份與一個月份結合起來創造一個YearMonth。 |
| 5 |
LocalDate atMonthDay(MonthDay monthDay) |
將年份與月份相結合以創建LocalDate。 |
| 6 |
int compareTo(Year other) |
將此年份到另一年份比較。 |
| 7 |
boolean equals(Object otherYear) |
檢查引年份是否等於指定的年份。 |
| 8 |
String format(DateTimeFormatter formatter) |
此年份使用指定的格式化程式格式化。 |
| 9 |
static Year from(TemporalAmount amount) |
從時間量獲得Year的實例。 |
| 10 |
int get(TemporalField field) |
從int獲取此年份指定字段的值。 |
| 11 |
long getLong(TemporalField field) |
獲取所請求單位的值。 |
| 12 |
int getValue() |
獲取年份值。 |
| 13 |
int hashCode() |
此年份的哈希碼。 |
| 14 |
boolean isAfter(Year other) |
檢查此年份是否在指定的年份之後。 |
| 15 |
boolean isBefore(Year other) |
檢查此年是否在指定年份之前。 |
| 16 |
boolean isLeap() |
根據ISO符號日曆系統規則,檢查年份是否為閏年。 |
| 17 |
boolean isLeap(long year) |
根據ISO符號日曆系統規則,檢查年份是否為閏年。 |
| 18 |
boolean isSupported(TemporalField field) |
檢查是否支持指定的字段。 |
| 19 |
boolean isSupported(TemporalUnit unit) |
檢查指定的單元是否受支持。 |
| 20 |
boolean isValidMonthDay(MonthDay monthDay) |
檢查月份是否對此年份有效。 |
| 21 |
int length() |
以天為單位獲取此年份的長度。 |
| 22 |
Year minus(long amountToSubtract, TemporalUnit unit) |
返回此年份的副本,減去指定的總量。 |
| 23 |
Year minus(TemporalAmount amountToSubtract) |
返回此年份的副本,並減去指定的年份。 |
| 24 |
Year minusYears(long yearsToSubtract) |
返回此年份的副本,減去指定的年份。 |
| 25 |
static Year now() |
在默認時區中從系統時鐘獲取當前年份。 |
| 26 |
static Year now(Clock clock) |
從指定的時鐘獲得當前年份。 |
| 27 |
static Year now(ZoneId zone) |
從指定時區的系統時鐘獲取當前年份。 |
| 28 |
static Year of(int years) |
獲得Year的實例。 |
| 29 |
static Year parse(CharSequence text) |
從文本字串(例如2007)獲取Year值。 |
| 30 |
static Year parse(CharSequence text, DateTimeFormatter formatter) |
使用特定格式化程式從文本字串中獲取Year的實例。 |
| 31 |
Year plus(long amountToAdd, TemporalUnit unit) |
返回添加了指定年份的本年份副本。 |
| 32 |
Year plus(TemporalAmount amountToAdd) |
返回添加了指定年份的本年份副本。 |
| 33 |
Year plusMonths(long monthsToAdd) |
返回指定月份的本年份副本。 |
| 34 |
Year plusYears(long yearsToAdd) |
返回添加了指定年份的本年份副本。 |
| 35 |
R query(TemporalQuery query) |
|
| 36 |
ValueRange range(TemporalField field) |
獲取指定字段的有效值範圍。 |
| 37 |
String toString() |
將此年份輸出為String。 |
| 38 |
long until(Temporal endExclusive, TemporalUnit unit) |
按指定單位計算直到另一年的時間量。 |
| 39 |
Year with(TemporalAdjuster adjuster) |
返回此年份的調整副本。 |