title: remove an object from different queues without iterating them or using hard-code
body: <p>In my code, I am using 28800 different queues for some reasons. And these queues can contain same object with different order at same time. For example</p>
  
  <pre><code>LinkedList&lt;Object&gt; queue1 = new LinkedList&lt;Object&gt;();
  Vector&lt;Object&gt; queue2 = new Vector&lt;Object&gt;();
  ArrayList&lt;Object&gt; queue3 = new ArrayList&lt;Object&gt;();
  ...
  
  Object a = new Object();
  Object b = new Object();
  Object c = new Object();
  queue1.add(a);
  queue1.add(b);
  queue1.add(c);
  queue2.add(b);
  queue2.add(c);
  queue3.add(c);
  </code></pre>
  
  <p>Exactly what I need is that, I want to remove an object from all of these 28800 queues.</p>
  
  <p>How can I remove an object from all queues without iterating them or hard-coding 28800 lines like <code>queueX.remove(myObject);</code></p>
  
  <p>Actually I am looking for smarter way, Is it possible?</p>
  
  <p>Also I tried set null the object which I want to deallocate but all of these queue types (arraylist, linkedlist, vector etc) still contains that object as null state.</p>
  
  <p>P.S: I tried it in java but language can be c or c#, it doesn't matter actually. So I am flexible about queue types like arraylist, vector etc.</p>