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) |
返回此年份的调整副本。 |