There is a Map. At a beautiful moment, several of its Value can change, the keys of course remain in place. I need to get a card that would contain only those key-value pairs that have been changed.
I thought I would take keySet () and removeAll (), but the keys do not change, so I’ll get an empty result.
I thought I would get the values () from two maps and do removeAll (), in this case, of course, I get pairs that have changed, but without keys. Just bare values without keys are not suitable. How to be?