title: Any big difference between using contains or loop through a list?
body: <p>Performance wise, is there really a big difference between using:</p>
  
  <ul>
  <li>ArrayList.contains(o) vs foreach|iterator</li>
  <li>LinkedList.contains(o) vs foreach|iterator</li>
  </ul>
  
  <p>Of course, for the foreach|iterator loops, I'll have to explicitly compare the methods and return true or false accordingly.</p>
  
  <p>The object I'm comparing is an object where <code>equals()</code> and <code>hashcode()</code> are both properly overridden.</p>
  
  <p><strong>EDIT:</strong> Don't need to know about containsValue after all, sorry about that. And yes, I'm stupid... I realized how stupid my question was about containsKey vs foreach, nevermind about that, I don't know what I was thinking. I basically want to know about the ones above (edited out the others).</p>