class OpeningHoursInterval {

    public boolean isDateInInterval(Date date) {
        final int dayOfWeek = DateUtil.getDayOfWeek(date);
        boolean isInInterval = false;
        if (getNumberOfDays() == 1) {
            if (mStartDay == dayOfWeek) {
                isInInterval = true;
            }
        } else {
            if (dayOfWeek >= mStartDay && dayOfWeek <= mEndDay) {
                isInInterval = true;
            }
        }
        return isInInterval;
    }

    public  OpeningHoursInterval(int startDay, int endDay, String openingHours);
    public  OpeningHoursInterval(int startDay, String openingHours);

}