title: Java Map, filter with values properties
body: <p>I have a </p>
  
  <pre><code>TreeMap resMap new TreeMap&lt;String, Map&lt;String, String&gt;&gt;(); 
  </code></pre>
  
  <p>I would like to filter and keep only entries that values contains a known pair, let's say ('mike' => 'jordan'), and avoid a loop like below</p>
  
  <p>Is there in my included libraries apache.commons and google.common a filter method (that probably would do a loop too, but at least it's less verbose </p>
  
  <pre><code>for (Entry&lt;String, TreeMap&lt;String, String&gt;&gt; el : resMap.entrySet()){
      if (el.getValue().get("mike").equals("jordan")){
          //
      }
  }
  </code></pre>