I know I’ll get more geek points if I write Java code like:
pConf.getProfiles().forEach(
p -> mProfileURIMap.put(p.getId(), p.getURI()));
But I still think nothing beats a good old loop:
for (ProfileConf profileConf : pConf.getProfiles()) {
mProfileURIMap.put(profileConf.getId(), profileConf.getURI());
}
#java #coding