@Test public void testSetSelected() throws Exception { assertFalse(mUnit.isSelected()); mUnit.setSelected(true); assertTrue(mUnit.isSelected()); }
protected void setSelected(boolean selected) { mSelected = selected; }
CalendarUnit { protected void setSelected(boolean selected) { mSelected = selected; } }
CalendarUnit { protected void setSelected(boolean selected) { mSelected = selected; } protected  CalendarUnit(@NonNull LocalDate from, @NonNull LocalDate to, @NonNull LocalDate today); }
CalendarUnit { protected void setSelected(boolean selected) { mSelected = selected; } protected  CalendarUnit(@NonNull LocalDate from, @NonNull LocalDate to, @NonNull LocalDate today); LocalDate getToday(); LocalDate getFrom(); LocalDate getTo(); boolean isSelected(); abstract boolean hasNext(); abstract boolean hasPrev(); abstract boolean next(); abstract boolean prev(); @CalendarType abstract int getType(); boolean isIn(@NonNull LocalDate date); boolean isInView(@NonNull LocalDate date); abstract void deselect(@NonNull LocalDate date); abstract boolean select(@NonNull LocalDate date); abstract void build(); @Override boolean equals(Object o); @Override int hashCode(); }
CalendarUnit { protected void setSelected(boolean selected) { mSelected = selected; } protected  CalendarUnit(@NonNull LocalDate from, @NonNull LocalDate to, @NonNull LocalDate today); LocalDate getToday(); LocalDate getFrom(); LocalDate getTo(); boolean isSelected(); abstract boolean hasNext(); abstract boolean hasPrev(); abstract boolean next(); abstract boolean prev(); @CalendarType abstract int getType(); boolean isIn(@NonNull LocalDate date); boolean isInView(@NonNull LocalDate date); abstract void deselect(@NonNull LocalDate date); abstract boolean select(@NonNull LocalDate date); abstract void build(); @Override boolean equals(Object o); @Override int hashCode(); static final int TYPE_WEEK; static final int TYPE_MONTH; }