private Integer getSumOwed() { Integer sumOwed = 0; for (Balance creditor : self.creditors()) { sumOwed += creditor.getBalance() < 0 ? -creditor.getBalance() : 0; } return sumOwed; }
public List<Balance> getCreditors() { return self.creditors().toList(); }
public Balance getAccount(String accountId) { return self.getAccount(accountId); }