Using Google Guava (Google Commons), is there a way to merge two equally sized lists into one list, with the new list containing composite objects of the two input lists?
As of Guava 21, this is possible via Streams.zip():
List persons = Streams.zip(names.stream(), ages.stream(), Person::new) .collect(Collectors.toList());