if (this.getRegime().equals(RegimeType.ANUAL) && this.getCompetenceCourseLoadsCount() > 1) { return (this.getCompetenceCourseLoads(order) != null) ? this.getCompetenceCourseLoads(order).getAutonomousWorkHours() : result; } if (this.getCompetenceCourseLoadsCount() == 1) { return (this.getCompetenceCourseLoads(1) != null) ? this.getCompetenceCourseLoads(1).getAutonomousWorkHours() : result;
for (CompetenceCourseLoad competenceCourseLoad : getCompetenceCourseLoads()) { if (order == null || competenceCourseLoad.getOrder().equals(order)) { result += competenceCourseLoad.getAutonomousWorkHours(); }
    public Double getAutonomousWorkHours(Integer order) {        double result = 0.0;        if (this.getRegime().equals(RegimeType.ANUAL) && this.getCompetenceCourseLoadsCount() > 1) {            return (this.getCompetenceCourseLoads(order) != null) ? this.getCompetenceCourseLoads(order).getAutonomousWorkHours() : result;        }         if (this.getCompetenceCourseLoadsCount() == 1) {            return (this.getCompetenceCourseLoads(1) != null) ? this.getCompetenceCourseLoads(1).getAutonomousWorkHours() : result;        }                return result;    }