package net.sourceforge.fenixedu.dataTransferObject.finantialServices; import java.io.Serializable; import java.math.BigDecimal; import org.apache.commons.lang.ObjectUtils; import net.sourceforge.fenixedu.domain.student.StudentStatuteType; import net.sourceforge.fenixedu.domain.tuition.TuitionArticleState; public class CurricularCourseTuitionArticleData extends TuitionArticleData implements Serializable { private static final long serialVersionUID = 1L; private Double ectsCredits; private Double factor; public CurricularCourseTuitionArticleData() { super(); } public CurricularCourseTuitionArticleData(CurricularCourseTuitionArticleData obj) { this(obj.getCode(), obj.getDescription(), obj.getValue(), obj.getManual(), obj.getCurricularYear(), obj .getStudentStatute(), obj.getState(), obj.getEctsCredits(), obj.getFactor()); } public CurricularCourseTuitionArticleData(String code, String description, BigDecimal value, Boolean manual, Integer curricularYear, StudentStatuteType studentStatute, TuitionArticleState state, Double ectsCredits, Double factor) { super(code, description, value, manual, curricularYear, studentStatute, state); this.ectsCredits = ectsCredits; this.factor = factor; } public Double getEctsCredits() { return ectsCredits; } public Double getFactor() { return factor; } @Override public boolean isCurricularCourseTuitionArticle() { return true; } @Override public CurricularCourseTuitionArticleData getCopy() { return new CurricularCourseTuitionArticleData(this); } @Override public boolean hasSameRelevantData(TuitionArticleData thatGeneric) { CurricularCourseTuitionArticleData that = (CurricularCourseTuitionArticleData)thatGeneric; boolean result = false; result = super.hasSameRelevantData(that) && ObjectUtils.equals(this.ectsCredits, that.ectsCredits) && ObjectUtils.equals(this.factor, that.factor); return result; } }