Can i query a List? Java
<p>Say i have </p>

<pre><code>List&lt;SomeObject&gt; objList = new ArrayList&lt;SomeObject&gt;();
</code></pre>

<p>If someObject contains a field named id. Can we find it through some query like</p>

<p><code>objList.filter('id=2');</code> </p>

<p>wihout looping through the list? If not, then why? This can be so useful method and used as an alternative to write tedious for loop?</p>

<p>Just a question that came to my mind so i thought i must clear it here :)</p>

<p>Thanks in advance :)</p>
