/** 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; }
/** 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; }