private static boolean isValidHour(int hour) {
    return 0 <= hour && hour <= 23;
  }
@param startHour inclusive
@param endHour   exclusive
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/OffPeakHours.java