get Object in List<Object> using the equals method?
<p>how to get a specific <code>java</code> object from <code>java.util.List&lt;Object&gt;</code> using <code>equals</code> method
exemple :</p>

<pre><code>  Class Person{
       String name;
       int age;
       //...

       @Override
       public boolean equals(String str) {
            return (this.name.equals(str.name));
       }
    }

main{
   List&lt;Person&gt; list = personDao.findAll();

   if(list.contain("joe")){
      // how to get the Person named joe ????
   }
}
</code></pre>
