test_class.file: app/src/test/java/org/berlin_vegan/bvapp/data/OpeningHoursIntervalTest.java
test_class.identifier: OpeningHoursIntervalTest
test_case.body: @Test
      public void testIsDateInInterval() throws Exception {
          final Date date = new GregorianCalendar(2015, GregorianCalendar.JULY, 26).getTime(); // sunday
  
          OpeningHoursInterval interval = new OpeningHoursInterval(5, 6, "9 - 10");// saturday - sunday
          assertTrue(interval.isDateInInterval(date));
  
          interval = new OpeningHoursInterval(6, "9 - 10");// only sunday
          assertTrue(interval.isDateInInterval(date));
  
          interval = new OpeningHoursInterval(0, 2, "9 - 10");// monday - wednesday
          assertFalse(interval.isDateInInterval(date));
      }
test_case.class_method_signature: OpeningHoursIntervalTest.testIsDateInInterval()
test_case.full_signature: @Test public void testIsDateInInterval()
test_case.identifier: testIsDateInInterval
test_case.invocations: getTime assertTrue isDateInInterval assertTrue isDateInInterval assertFalse isDateInInterval
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsDateInInterval()
focal_class.declarator: CLOSED = ""
focal_class.modifier: public static final
focal_class.original_string: public static final String CLOSED = "";
focal_class.type: String
focal_class.var_name: CLOSED
focal_class.declarator: sNoEndDay = -1
focal_class.modifier: private static final
focal_class.original_string: private static final int sNoEndDay = -1;
focal_class.type: int
focal_class.var_name: sNoEndDay
focal_class.declarator: mStartDay = 0
focal_class.modifier: private
focal_class.original_string: private int mStartDay = 0;
focal_class.type: int
focal_class.var_name: mStartDay
focal_class.declarator: mEndDay = sNoEndDay
focal_class.modifier: private
focal_class.original_string: private int mEndDay = sNoEndDay;
focal_class.type: int
focal_class.var_name: mEndDay
focal_class.declarator: mOpeningHoursTimes = CLOSED
focal_class.modifier: private
focal_class.original_string: private String mOpeningHoursTimes = CLOSED;
focal_class.type: String
focal_class.var_name: mOpeningHoursTimes
focal_class.file: app/src/main/java/org/berlin_vegan/bvapp/data/OpeningHoursInterval.java
focal_class.identifier: OpeningHoursInterval
focal_class.class_method_signature: OpeningHoursInterval.OpeningHoursInterval(int startDay, int endDay, String openingHours)
focal_class.full_signature: public  OpeningHoursInterval(int startDay, int endDay, String openingHours)
focal_class.identifier: OpeningHoursInterval
focal_class.modifiers: public
focal_class.parameters: (int startDay, int endDay, String openingHours)
focal_class.signature:  OpeningHoursInterval(int startDay, int endDay, String openingHours)
focal_class.class_method_signature: OpeningHoursInterval.OpeningHoursInterval(int startDay, String openingHours)
focal_class.full_signature: public  OpeningHoursInterval(int startDay, String openingHours)
focal_class.identifier: OpeningHoursInterval
focal_class.modifiers: public
focal_class.parameters: (int startDay, String openingHours)
focal_class.signature:  OpeningHoursInterval(int startDay, String openingHours)
focal_class.class_method_signature: OpeningHoursInterval.getStartDay()
focal_class.full_signature: public int getStartDay()
focal_class.identifier: getStartDay
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getStartDay()
focal_class.class_method_signature: OpeningHoursInterval.setStartDay(int startDay)
focal_class.full_signature: public void setStartDay(int startDay)
focal_class.identifier: setStartDay
focal_class.modifiers: public
focal_class.parameters: (int startDay)
focal_class.return: void
focal_class.signature: void setStartDay(int startDay)
focal_class.class_method_signature: OpeningHoursInterval.getEndDay()
focal_class.full_signature: public int getEndDay()
focal_class.identifier: getEndDay
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getEndDay()
focal_class.class_method_signature: OpeningHoursInterval.setEndDay(int endDay)
focal_class.full_signature: public void setEndDay(int endDay)
focal_class.identifier: setEndDay
focal_class.modifiers: public
focal_class.parameters: (int endDay)
focal_class.return: void
focal_class.signature: void setEndDay(int endDay)
focal_class.class_method_signature: OpeningHoursInterval.getOpeningHours()
focal_class.full_signature: public String getOpeningHours()
focal_class.identifier: getOpeningHours
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOpeningHours()
focal_class.class_method_signature: OpeningHoursInterval.setOpeningHours(String openingHours)
focal_class.full_signature: public void setOpeningHours(String openingHours)
focal_class.identifier: setOpeningHours
focal_class.modifiers: public
focal_class.parameters: (String openingHours)
focal_class.return: void
focal_class.signature: void setOpeningHours(String openingHours)
focal_class.class_method_signature: OpeningHoursInterval.getNumberOfDays()
focal_class.full_signature: public int getNumberOfDays()
focal_class.identifier: getNumberOfDays
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumberOfDays()
focal_class.class_method_signature: OpeningHoursInterval.isDateInInterval(Date date)
focal_class.full_signature: public boolean isDateInInterval(Date date)
focal_class.identifier: isDateInInterval
focal_class.modifiers: public
focal_class.parameters: (Date date)
focal_class.return: boolean
focal_class.signature: boolean isDateInInterval(Date date)
focal_method.body: 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;
      }
focal_method.class_method_signature: OpeningHoursInterval.isDateInInterval(Date date)
focal_method.full_signature: public boolean isDateInInterval(Date date)
focal_method.identifier: isDateInInterval
focal_method.invocations: getDayOfWeek getNumberOfDays
focal_method.modifiers: public
focal_method.parameters: (Date date)
focal_method.return: boolean
focal_method.signature: boolean isDateInInterval(Date date)