YearMonth.getYear

Gets the year field. !(p) This method returns the primitive {@code int} value for the year. !(p) The year returned by this method is proleptic as per {@code get(YEAR)}.

@return the year, from MIN_YEAR to MAX_YEAR

class YearMonth
int
getYear
()

Meta