I have such collection: Map<Integer, List<MyObject>> collection
I would like to map the whole list of MyObject to MyObjectDTO and return the whole map with the mapped list.
So return will be:
Map<Integer, List<MyObjectDto>> collectionWithDtos
What is the easiest and quickest way? I've checked a couple of ways with streams but none of that produced results as I expected. Thanks