private void add(int startHour, int limitHour, DayPeriod period) {
        for (int i = startHour; i != limitHour; ++i) {
            if (i == 24) { i = 0; }
            dayPeriodForHour[i] = period;
        }
    }
private void add ( int startHour , int limitHour , DayPeriod period ) { for ( int i = startHour ; i != limitHour ; ++ i ) { if ( i == 24 ) { i = 0 ; } dayPeriodForHour [ i ] = period ; } }
Helpers.