SHARE
TWEET

JobComparatorByFinishTime

LeeSeng Aug 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package system.domain;
  2.  
  3. import java.util.Comparator;
  4.  
  5. public class JobComparatorByFinishTime implements Comparator<Job> {
  6.  
  7.     @Override
  8.     public int compare(Job job1, Job job2) {
  9.         // TODO Auto-generated method stub
  10.         return(job1.getFinishTime() - job2.getFinishTime());
  11.     }
  12.    
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top