Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<CurrencyRatesModel> findHistorical(String code, Date date) {
- Optional<CurrencyModel> currencyModel = currencyRepository.findCurrencyModelByCode(code);
- return currencyModel.get().getCurrencyRatesModels().stream().filter(c -> c.getDate() == date).collect(Collectors.toList());
- }
Advertisement
Add Comment
Please, Sign In to add comment