@@ -0,0 +1,1049 @@
+package uk.ac.ebi.quickgo.rest.period;%0A%0Aimport java.time.DayOfWeek;%0A%0A/**%0A * Hold range of two days of the Week %7B@link DayOfWeek%7D, provide information about this range.%0A * @author Tony Wardell%0A * Date: 17/05/2017%0A * Time: 11:19%0A * Created with IntelliJ IDEA.%0A */%0Aclass DayOfWeekRange %7B%0A%0A    private static final int ONE_DAY = 1;%0A    private DayOfWeek start;%0A    private DayOfWeek end;%0A%0A    DayOfWeekRange(DayOfWeek start, DayOfWeek end) %7B%0A        this.start = start;%0A        this.end = end;%0A    %7D%0A%0A    /**%0A     * Does this range iclude the target day of the week%0A     * @param target DayOfWeek%0A     * @return boolean for inclusion.%0A     */%0A    boolean includes(DayOfWeek target)%7B%0A        DayOfWeek comparison = start;%0A        boolean checkedEnd = false;%0A        while(!checkedEnd) %7B%0A            if (comparison.equals(target))%7B%0A                return true;%0A            %7D%0A            if(comparison.equals(end))%7B%0A                checkedEnd = true;%0A            %7D%0A            comparison = comparison.plus(ONE_DAY);%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Test DayOfWeekRange instance.