Diamond operator vs into

Michael Nascimento misterm at gmail.com
Fri Jan 4 08:32:41 PST 2013


Hi guys,

The diamond operator with into:

public void aMethod(List<Entity> entities) {
   List<Long> ids = entities.parallelStream().map(e ->
e.getId()).into(new ArrayList<>());
}

Is this a temporary state or we will have to get back to fully using  generics?

Regards,
Michael


More information about the lambda-dev mailing list