code: int findIndex(final Job job) {
          int size = jobList.size();
          boolean found = false;
  
          int i = 0;
          for (; i < size; i++) {
              ScheduledJobEntry se = (ScheduledJobEntry) jobList.get(i);
              if (se.job == job) {
                  found = true;
                  break;
              }
          }
          if (found) {
              return i;
          } else {
              return -1;
          }
      }
docs: Find the index of a given job.
  @param job job
  @return -1 if the job could not be found.