@Test public void testSelectDay() throws Exception { LocalDate select = LocalDate.now().plusDays(1); boolean result = mCalendarManager.selectDay(select); assertTrue(result); assertTrue(mCalendarManager.getUnits().isSelected()); }
public boolean selectDay(@NonNull LocalDate date) { if (!mSelected.isEqual(date)) { mUnit.deselect(mSelected); mSelected = date; mUnit.select(mSelected); if (mState == State.WEEK) { setActiveMonth(date); } return true; } else { return false; } }
CalendarManager { public boolean selectDay(@NonNull LocalDate date) { if (!mSelected.isEqual(date)) { mUnit.deselect(mSelected); mSelected = date; mUnit.select(mSelected); if (mState == State.WEEK) { setActiveMonth(date); } return true; } else { return false; } } }
CalendarManager { public boolean selectDay(@NonNull LocalDate date) { if (!mSelected.isEqual(date)) { mUnit.deselect(mSelected); mSelected = date; mUnit.select(mSelected); if (mState == State.WEEK) { setActiveMonth(date); } return true; } else { return false; } } CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
                           @Nullable LocalDate maxDate);  CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
            @Nullable LocalDate maxDate, @Nullable Formatter formatter); }
CalendarManager { public boolean selectDay(@NonNull LocalDate date) { if (!mSelected.isEqual(date)) { mUnit.deselect(mSelected); mSelected = date; mUnit.select(mSelected); if (mState == State.WEEK) { setActiveMonth(date); } return true; } else { return false; } } CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
                           @Nullable LocalDate maxDate);  CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
            @Nullable LocalDate maxDate, @Nullable Formatter formatter); boolean selectDay(@NonNull LocalDate date); @NonNull LocalDate getSelectedDay(); @NonNull String getHeaderText(); boolean hasNext(); boolean hasPrev(); boolean next(); boolean prev(); void toggleView(); @NonNull State getState(); CalendarUnit getUnits(); LocalDate getActiveMonth(); int getWeekOfMonth(); void init(@NonNull LocalDate date, @Nullable LocalDate minDate, @Nullable LocalDate maxDate); @Nullable LocalDate getMinDate(); void setMinDate(@Nullable LocalDate minDate); @Nullable LocalDate getMaxDate(); void setMaxDate(@Nullable LocalDate maxDate); @NonNull Formatter getFormatter(); }
CalendarManager { public boolean selectDay(@NonNull LocalDate date) { if (!mSelected.isEqual(date)) { mUnit.deselect(mSelected); mSelected = date; mUnit.select(mSelected); if (mState == State.WEEK) { setActiveMonth(date); } return true; } else { return false; } } CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
                           @Nullable LocalDate maxDate);  CalendarManager(@NonNull LocalDate selected, @NonNull State state, @Nullable LocalDate minDate,
            @Nullable LocalDate maxDate, @Nullable Formatter formatter); boolean selectDay(@NonNull LocalDate date); @NonNull LocalDate getSelectedDay(); @NonNull String getHeaderText(); boolean hasNext(); boolean hasPrev(); boolean next(); boolean prev(); void toggleView(); @NonNull State getState(); CalendarUnit getUnits(); LocalDate getActiveMonth(); int getWeekOfMonth(); void init(@NonNull LocalDate date, @Nullable LocalDate minDate, @Nullable LocalDate maxDate); @Nullable LocalDate getMinDate(); void setMinDate(@Nullable LocalDate minDate); @Nullable LocalDate getMaxDate(); void setMaxDate(@Nullable LocalDate maxDate); @NonNull Formatter getFormatter();  }