EndOfMonthTemporalAdjuster implements TemporalAdjuster { @Override public Temporal adjustInto(final Temporal temporal) { ArgumentChecker.notNull(temporal, "temporal"); return temporal.with(LAST_DAY_OF_THE_MONTH); } private  EndOfMonthTemporalAdjuster(); static TemporalAdjuster getAdjuster(); @Override Temporal adjustInto(final Temporal temporal);  }
@Test public void test() { for (int i = 1; i < 30; i++) { final LocalDate date = LocalDate.of(2013, 1, i); assertEquals(LocalDate.of(2013, 1, 31), ADJUSTER.adjustInto(date)); } }