title: Reduce the size of list with Java 8 stream
body: <p>I want to reduce the size (delete some elements) of an ordered list of map objects. All objects of list should be discarded unless a certain condition is met. And when that condition is met all next elements of that list should remained in the list. I have following piece of code. I want to do the same with Java 8.</p>
  
  <pre><code>public List&lt;Map&lt;String, String&gt;&gt; doAction(List&lt;Map&lt;String, String&gt;&gt; dataVoMap) {
      List&lt;Map&lt;String,String&gt;&gt; tempMap = new ArrayList&lt;&gt;();
      boolean found = false;
      for(Map&lt;String, String&gt; map: dataVoMap){
          if(map.get("service_id").equalsIgnoreCase("passed value") || found){
              found = true;
              tempMap.add(map);
          }
      }
      dataVoMap = tempMap;
      return dataVoMap;
  }
  </code></pre>