@Test public void testIsInBefore() throws Exception { LocalDate prevWeek = LocalDate.now().minusWeeks(1); assertFalse(mUnit.isIn(prevWeek.withDayOfWeek(DateTimeConstants.SUNDAY))); }
public boolean isIn(@NonNull LocalDate date) { return !mFrom.isAfter(date) && !mTo.isBefore(date); }
CalendarUnit { public boolean isIn(@NonNull LocalDate date) { return !mFrom.isAfter(date) && !mTo.isBefore(date); } }
CalendarUnit { public boolean isIn(@NonNull LocalDate date) { return !mFrom.isAfter(date) && !mTo.isBefore(date); } protected  CalendarUnit(@NonNull LocalDate from, @NonNull LocalDate to, @NonNull LocalDate today); }
CalendarUnit { public boolean isIn(@NonNull LocalDate date) { return !mFrom.isAfter(date) && !mTo.isBefore(date); } 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 { public boolean isIn(@NonNull LocalDate date) { return !mFrom.isAfter(date) && !mTo.isBefore(date); } 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; }