DateTime is immutable, so there are no set methods. Instead, this method returns a new instance with the value of year changed. @param year the year to set @return a copy of this object with the field set @throws IllegalArgumentException if the value is invalid @since 1.3
LocalDate is immutable, so there are no set methods. Instead, this method returns a new instance with the value of year changed. @param year the year to set @return a copy of this object with the field set @throws IllegalArgumentException if the value is invalid
This instance is immutable and unaffected by this method call. @param year the year to set in the returned year-month, from MIN_YEAR to MAX_YEAR @return a {@code YearMonth} based on this year-month with the requested year, not null @throws DateTimeException if the year value is invalid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|