Move min method to ChartFiller so it can be reused easily
FEA: ItEr60S19TimeUnitDataType
This commit is contained in:
parent
ddf0dbd85c
commit
1873ca1edc
2 changed files with 5 additions and 5 deletions
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||
import java.io.PrintWriter;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
|
@ -142,6 +143,10 @@ public abstract class ChartFiller implements IChartFiller {
|
|||
}
|
||||
}
|
||||
|
||||
protected static EffortDuration min(EffortDuration... durations) {
|
||||
return Collections.min(Arrays.asList(durations));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
protected final int sumHoursForDay(
|
||||
Collection<? extends Resource> resources,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import static org.navalplanner.web.I18nHelper._;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
|
@ -135,10 +134,6 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
|
|||
public static final String COLOR_CAPABILITY_LINE = "#000000"; // black
|
||||
public static final String COLOR_OVERLOAD_GLOBAL = "#FDBE13";
|
||||
|
||||
private static EffortDuration min(EffortDuration... durations) {
|
||||
return Collections.min(Arrays.asList(durations));
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private IOrderDAO orderDAO;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue