I\'m having two lists of same size ids and results and I want to create new list with domain objects.
ids
results
List ids = ... Lis
I've found a way to do it using guava zip operator.
zip
List list = Streams.zip(ids.stream(), results.stream(), DomainObject::new) .collect(Collectors.toList());