title: Use of stream, filter and average on list and jdk8
body: <p>I have this list of data that look like this;</p>
  
  <pre><code>{id, datastring}
  
  {1,"a:1|b:2|d:3"}
  {2,"a:2|c:2|c:4"}
  {3,"a:2|bb:2|a:3"}
  {4,"a:3|e:2|ff:3"}
  </code></pre>
  
  <p>What I need to do here is to do operations like average or find all id for which a element in the string is less than a certain value.</p>
  
  <p>Here are some example;</p>
  
  <p>Averages</p>
  
  <pre><code>{a,2}{b,2}{bb,2}{c,3}{d,3}{e,2}{ff,3}
  </code></pre>
  
  <p>Find all id's where c&lt;4</p>
  
  <pre><code>{2}
  </code></pre>
  
  <p>Find all id's where a&lt;3</p>
  
  <pre><code>{1,2,3}
  </code></pre>
  
  <p>Would this be a good use of stream() and filter() ??</p>