Functions.identity() equivalent

Michael Nascimento misterm at
Thu Apr 18 11:52:32 PDT 2013

Hi guys,

One common scenario here is having a Map<Something, Long> and wanting
to do something with the values. So I (think I) have to do:

totalBySomething.values().parallelStream().mapToLong(l -> l)...

because I cannot use Functions.identity() here. This shows up pretty
often. Anything planned for that?


More information about the lambda-dev mailing list