code: public static boolean isValid(@Nullable final String hour) {
          if (hour == null) {
              return true;
          }
          return PATTERN.matcher(hour).matches();
      }
docs: Verifies if the string is a valid hour.
  
  @param hour
  Hour string to test.
  
  @return {@literal true} if the string is a valid number, else {@literal false}.