title: Checking if queue contains object
body: <p>For a <code>java.util.concurrent.BlockingQueue</code></p>
  
  <p>By Java specification, for a method <code>contains(Object o)</code></p>
  
  <p>If I have previously inserted a new object like:</p>
  
  <pre><code>Task task = new Task("taskname", "somevalue"); 
  queue.put(task);
  </code></pre>
  
  <p>on it. And later try to do this:</p>
  
  <pre><code>Task task = new Task("taskname", "somevalue"); 
  queue.contains(task);
  </code></pre>
  
  <p>Since BlockingQueue is just an interface, by Java specification, should this return true or not? </p>
  
  <p>The <code>Task</code> class is <code>Serializable</code> so the comparison will be based on field values right?</p>