java time Year isSupported(TemporalFieldfield)方法检查是否支持指定的字段。1语法publicbooleanisSupported(TemporalFieldfield)2参数fi
java time Year isLeap()方法检查年份是否为闰年。1语法publicstaticbooleanisLeap(intyear)2参数year:检查是否为闰年的年份。3返回值如果
java time Year isLeap()方法检查年份是否为闰年。1语法publicstaticbooleanisLeap(intyear)2参数year:检查是否为闰年的年份。3返回值如果
java time Year isBefore(Yearother)方法检查此年份是否在指定年份之前。1语法publicbooleanisBefore(Yearother)2参数other:与另一年份进
java time Year isAfter(Yearother)方法检查此年-月是否在指定年份之后。1语法publicbooleanisAfter(Yearother)2参数other:比较的另一年,
java time Year hashCode()方法返回此Year的哈希码。1语法publicinthashCode()2参数无3返回值合适的哈希码。4示例packagecom yiidian; ***
java time Year getValue()方法获取年份值。1语法publicintgetValue()2参数无3返回值年份,从MIN_YEAR到MAX_YEAR。4示例packagecom yiidian
java time Year getLong(TemporalFieldfield)方法从今年获取指定字段的long值。1语法publiclonggetLong(TemporalFieldfield)2参数field:要
java time Year get(TemporalFieldfield)方法获取请求字段的值。1语法publiclongget(TemporalFieldfield)2参数field:要为其返回值的Tempor
java time Year from(TemporalAmountamount)方法从时间量获取Year的实例。1语法publicstaticYearfrom(TemporalAmountamount)2参数amount: