Checking that a field in a List of Objects has a certain value?
<p>I have a list of <code>Person</code> Objects:</p>

<pre><code>List&lt;Person&gt; allPersons = new ArrayList&lt;Person&gt;();
</code></pre>

<p>The Person object has a <code>field</code> called <code>Address</code>.</p>

<p>I would like to check that <em>at least one</em> Person in the list has a certain address
How can I do this?</p>

<p>I know that there is a <a href="http://www.tutorialspoint.com/java/util/hashmap_containsvalue.htm" rel="nofollow">.containsValue()</a> method when using a HashMap, but is there anything similar for an <code>ArrayList</code>?</p>

<p>Edit: please note that I am searching for a specific <em>field value</em> within each object, <strong>not</strong> the object itself?</p>