@Test public void testNext() throws Exception { assertTrue(mMonth.next()); assertEquals(LocalDate.parse("2014-11-01"), mMonth.getFrom()); assertEquals(LocalDate.parse("2014-11-30"), mMonth.getTo()); assertEquals(LocalDate.parse("2014-10-27"), mMonth.getWeeks().get(0).getFrom()); }
@Override public boolean next() { if (hasNext()) { setFrom(getTo().plusDays(1)); setTo(getFrom().withDayOfMonth(getFrom().dayOfMonth().getMaximumValue())); build(); return true; } else { return false; } }
Month extends RangeUnit { @Override public boolean next() { if (hasNext()) { setFrom(getTo().plusDays(1)); setTo(getFrom().withDayOfMonth(getFrom().dayOfMonth().getMaximumValue())); build(); return true; } else { return false; } } }
Month extends RangeUnit { @Override public boolean next() { if (hasNext()) { setFrom(getTo().plusDays(1)); setTo(getFrom().withDayOfMonth(getFrom().dayOfMonth().getMaximumValue())); build(); return true; } else { return false; } } protected  Month(@NonNull LocalDate date, @NonNull LocalDate today, @Nullable LocalDate minDate,
                    @Nullable LocalDate maxDate); }
Month extends RangeUnit { @Override public boolean next() { if (hasNext()) { setFrom(getTo().plusDays(1)); setTo(getFrom().withDayOfMonth(getFrom().dayOfMonth().getMaximumValue())); build(); return true; } else { return false; } } protected  Month(@NonNull LocalDate date, @NonNull LocalDate today, @Nullable LocalDate minDate,
                    @Nullable LocalDate maxDate); @Override boolean hasNext(); @Override boolean hasPrev(); @Override boolean next(); @Override boolean prev(); @Override int getType(); @Override void deselect(@NonNull LocalDate date); @Override boolean select(@NonNull LocalDate date); @NonNull List<Week> getWeeks(); int getSelectedIndex(); @Override void build(); }
Month extends RangeUnit { @Override public boolean next() { if (hasNext()) { setFrom(getTo().plusDays(1)); setTo(getFrom().withDayOfMonth(getFrom().dayOfMonth().getMaximumValue())); build(); return true; } else { return false; } } protected  Month(@NonNull LocalDate date, @NonNull LocalDate today, @Nullable LocalDate minDate,
                    @Nullable LocalDate maxDate); @Override boolean hasNext(); @Override boolean hasPrev(); @Override boolean next(); @Override boolean prev(); @Override int getType(); @Override void deselect(@NonNull LocalDate date); @Override boolean select(@NonNull LocalDate date); @NonNull List<Week> getWeeks(); int getSelectedIndex(); @Override void build();  }