title: Java8 Nested Streams write back with setter
body: <p>I´m trying to loop over two  lists, filter the nested list and write the result back into the main object with java8 features.</p>
  
  <pre><code>locations.forEach(location -&gt; location.getSubList().stream()
              .filter(this::correctTestDataValue)
              .collect(Collectors.toList()));
  </code></pre>
  
  <p>So by now the sublist inside location doesnt change, which is
  obvious because stream and collect do create a new list, which
  is not written back into the location object.
  So my question is, if there is a way to call the setSubList(...) method
  of the location object and writing the new list into it.</p>
  
  <p>Thx</p>