package net.sourceforge.fenixedu.domain.candidacy.accounting; import net.sourceforge.fenixedu.domain.RootDomainObject; import net.sourceforge.fenixedu.util.Money; public class CandidacyCostDetail extends CandidacyCostDetail_Base { public CandidacyCostDetail() { super(); setRootDomainObject(RootDomainObject.getInstance()); } public static CandidacyCostDetail getCandidacyCostDetail(Money money) { for (CandidacyCostDetail detail : RootDomainObject.getInstance().getCandidacyCostDetails()) { if (detail.getCost().equals(money)) { return detail; } } return null; } }