libgdx/libgdx — pull request #2124 by davebaol (2014-07-16 17:30:13+00:00)
Title: Improved PriorityQueue when only unique elements are allowed.

Removed redundant `set.contains(element)`.
Also, improved `ObjectSet.add` javadoc to clarify that the set remains unchanged when false is returned. This is important in this context because the element is pooled and must return to the pool after being rejected by the queue.