I am new to scala I am trying to understand the streams. Can I some tell me the difference between java 8 streams filter and streams in scala ?
How do I convert this in scala ?
For example if I want to convert this to scala do I need to use to Stream or Stream[] ?
itemList.getIds() is Map<String, List<Ids>>
:
itemList.getIds().entrySet()
.stream()
.filter(entry -> validate(entry.getValue(), time))
.map(Map.Entry::getKey)
.findFirst().get()
Thanks