@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()); }
public EditExpenseCommand() { moneyActionDAO = ServicesFactory.getInstance().getDaoMoneyAction(); }