/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.isMap == that.isMap) { return this.id - that.id; } else return this.isMap ? -1 : 1; } else return jobComp; } @Override
/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.type == that.type) { return this.id - that.id; } else { return this.type.compareTo(that.type); } } else return jobComp; } @Override
/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.type == that.type) { return this.id - that.id; } else { return this.type.compareTo(that.type); } } else return jobComp; } @Override
/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.type == that.type) { return this.id - that.id; } else { return this.type.compareTo(that.type); } } else return jobComp; } @Override
/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.type == that.type) { return this.id - that.id; } else { return this.type.compareTo(that.type); } } else return jobComp; } @Override
/**Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are * defined as greater then maps.*/ @Override public int compareTo(ID o) { TaskID that = (TaskID)o; int jobComp = this.jobId.compareTo(that.jobId); if(jobComp == 0) { if(this.type == that.type) { return this.id - that.id; } else { return this.type.compareTo(that.type); } } else return jobComp; } @Override