title: Iterating through list and return matching keys
body: <p>I have a java Multimap that contains an identifier mapped to a start date and an end date.</p>
  
  <pre><code>SetMultiMap&lt;String,List&lt;Date&gt;&gt; mymap = LinkedHashMultimap.create();
  </code></pre>
  
  <p>I am using this map in another method, where I want to retrieve all the keys whose end date is less than 1 week ago.</p>
  
  <p>I tried this: </p>
  
  <pre><code>DateTime lastWeek_joda = new DateTime().minusDays(7);
  Date end_date = lastWeek_joda.toDate();
  </code></pre>
  
  <p>now i iterate as follows:</p>
  
  <pre><code>for (Map.Entry&lt;String,List&lt;date&gt;&gt; entry : mymap.entries()) 
      String key = entry.getKey();
      List&lt;Date&gt; value = entry.getValue();
      if (end_date.equals(value.get(1))) {
          key_set.add(key);
      }
  }
  </code></pre>
  
  <p>This doesnt return me the expected result?
  Can this be done any easier/different? Thanks in advance.</p>