equal
deleted
inserted
replaced
200 * The conversion extracts the {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} field. |
200 * The conversion extracts the {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} field. |
201 * The extraction is only permitted if the temporal object has an ISO |
201 * The extraction is only permitted if the temporal object has an ISO |
202 * chronology, or can be converted to a {@code LocalDate}. |
202 * chronology, or can be converted to a {@code LocalDate}. |
203 * <p> |
203 * <p> |
204 * This method matches the signature of the functional interface {@link TemporalQuery} |
204 * This method matches the signature of the functional interface {@link TemporalQuery} |
205 * allowing it to be used in queries via method reference, {@code Month::from}. |
205 * allowing it to be used as a query via method reference, {@code Month::from}. |
206 * |
206 * |
207 * @param temporal the temporal object to convert, not null |
207 * @param temporal the temporal object to convert, not null |
208 * @return the month-of-year, not null |
208 * @return the month-of-year, not null |
209 * @throws DateTimeException if unable to convert to a {@code Month} |
209 * @throws DateTimeException if unable to convert to a {@code Month} |
210 */ |
210 */ |
313 } |
313 } |
314 |
314 |
315 /** |
315 /** |
316 * Gets the value of the specified field from this month-of-year as an {@code int}. |
316 * Gets the value of the specified field from this month-of-year as an {@code int}. |
317 * <p> |
317 * <p> |
318 * This queries this month for the value for the specified field. |
318 * This queries this month for the value of the specified field. |
319 * The returned value will always be within the valid range of values for the field. |
319 * The returned value will always be within the valid range of values for the field. |
320 * If it is not possible to return the value, because the field is not supported |
320 * If it is not possible to return the value, because the field is not supported |
321 * or for some other reason, an exception is thrown. |
321 * or for some other reason, an exception is thrown. |
322 * <p> |
322 * <p> |
323 * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the |
323 * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the |
346 } |
346 } |
347 |
347 |
348 /** |
348 /** |
349 * Gets the value of the specified field from this month-of-year as a {@code long}. |
349 * Gets the value of the specified field from this month-of-year as a {@code long}. |
350 * <p> |
350 * <p> |
351 * This queries this month for the value for the specified field. |
351 * This queries this month for the value of the specified field. |
352 * If it is not possible to return the value, because the field is not supported |
352 * If it is not possible to return the value, because the field is not supported |
353 * or for some other reason, an exception is thrown. |
353 * or for some other reason, an exception is thrown. |
354 * <p> |
354 * <p> |
355 * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the |
355 * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the |
356 * value of the month-of-year, from 1 to 12, will be returned. |
356 * value of the month-of-year, from 1 to 12, will be returned. |