Exemplo n.º 1
0
      private Integer getSumOwed() {
        Integer sumOwed = 0;
        for (Balance creditor : self.creditors()) {
          sumOwed += creditor.getBalance() < 0 ? -creditor.getBalance() : 0;
        }

        return sumOwed;
      }
Exemplo n.º 2
0
 public List<Balance> getCreditors() {
   return self.creditors().toList();
 }
Exemplo n.º 3
0
 public Balance getAccount(String accountId) {
   return self.getAccount(accountId);
 }