ResourceAllocation#sortByStartDate uses the intraDayStartDate to compare the allocations
FEA: ItEr60S19TimeUnitDataType
This commit is contained in:
parent
2a645b4bca
commit
82cae5cff7
1 changed files with 4 additions and 3 deletions
|
|
@ -130,13 +130,14 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
@Override
|
||||
public int compare(ResourceAllocation<?> o1,
|
||||
ResourceAllocation<?> o2) {
|
||||
if (o1.getStartDate() == null) {
|
||||
if (o1.getIntraDayStartDate() == null) {
|
||||
return -1;
|
||||
}
|
||||
if (o2.getStartDate() == null) {
|
||||
if (o2.getIntraDayStartDate() == null) {
|
||||
return 1;
|
||||
}
|
||||
return o1.getStartDate().compareTo(o2.getStartDate());
|
||||
return o1.getIntraDayStartDate().compareTo(
|
||||
o2.getIntraDayStartDate());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue