I\'ve got a map containing some keys (Strings) and values (POJOs)
I want to iterate through this map and alter some of the data in the POJO.
The current code
In order to provide a proper answer, you should explain a bit more, what you are trying to achieve.
Still, some (possibly useful) advice:
Which approach is best depends heavily on your application, it is difficult to give you any "best practice". As always, make your own benchmark with realistic data.