Beispiel #1
0
 /** Finds a job with given dest key or returns null */
 public static final Job findJobByDest(final Key destKey) {
   Job job = null;
   for( Job current : Job.all() ) {
     if( current.dest().equals(destKey) ) {
       job = current;
       break;
     }
   }
   return job;
 }
Beispiel #2
0
 /** Finds a job with given key or returns null */
 public static final Job findJob(final Key key) {
   Job job = null;
   for (Job current : Job.all()) {
     if (current.self().equals(key)) {
       job = current;
       break;
     }
   }
   return job;
 }