title: Get All object from a list <object> which id contains in List<long>
body: <p>How can i get <code>List&lt;Object&gt; filteredList</code>  whose id (<code>Object.id</code>) contains in a given <code>List&lt;id&gt; idsList</code> from another <code>List&lt;Object&gt;allObjects</code>.
  what will be the effective and efficient way in terms of time to solve this considering a moderate data volume.</p>
  
  <p>I am using java6</p>