@Override
 public List<Expense> getExpenses(Account account, Date startDate, Date endDate)
     throws ApException {
   return ServicesFactory.getInstance()
       .getDaoMoneyAction()
       .getByCreationDate(account, startDate, endDate)
       .stream()
       .filter(e -> e instanceof Expense)
       .map(e -> (Expense) e)
       .collect(Collectors.toList());
 }
예제 #2
0
 public EditExpenseCommand() {
   moneyActionDAO = ServicesFactory.getInstance().getDaoMoneyAction();
 }