A simple adjuster might simply set the one of the fields, such as the year field. A more complex adjuster might set the date to the last day of the month. A selection of common adjustments is provided in TemporalAdjusters. These include finding the "last day of the month" and "next Wednesday".
The java.time framework built into Java 8 and later supplants the troublesome old java.util.Date/.Calendar classes. Date-only. A LocalDate class is offered by java.time to represent a date-only value without any time-of-day or time zone. You do need a time zone to determine a date, as a new day dawns earlier in Paris than in Montréal for example.
The plusYears () method of LocalDate class in Java is used to add the number of specified years in this LocalDate and return a copy of LocalDate. Add the years to the year field. Check if the date after adding years is valid or not. If date is invalid then method adjust the day-of-month to the last valid day. For example, 2016-02-29 (leap year