Example usage for java.util PriorityQueue subclass-usage

List of usage examples for java.util PriorityQueue subclass-usage

Introduction

In this page you can find the example usage for java.util PriorityQueue subclass-usage.

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);
        }