title: Finding and replacing a specific object in priority queue
body: <p>With a list I would usually be able to find an element by doing something like this:</p>
  
  <pre><code>int index = open.indexOf(object);
  if(index != -1){
     open.set(index, neighbour);
  }
  </code></pre>
  
  <p>Is there a replacement/workarounds for priority queues?</p>
  
  <p>I have:</p>
  
  <p><code>PriorityQueue&lt;State&gt; open = createQ();
  </code></p>