Advertisement
LeeSeng

JobComparatorByFinishTime

Aug 17th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement