List of usage examples for java.util PriorityQueue subclass-usage
From source file Main.java
class NoDuplicates<E> extends PriorityQueue<E> { public boolean add(E e) { boolean isAdded = false; if (!super.contains(e)) { isAdded = super.add(e); }