class DefaultPriorityQueue extends AbstractQueue<T> implements PriorityQueue<T> {

    @Override
    public void clear() {
        for (int i = 0; i < size; ++i) {
            T node = queue[i];
            if (node != null) {
                node.priorityQueueIndex(this, INDEX_NOT_IN_QUEUE);
                queue[i] = null;
            }
        }
        size = 0;
    }

    @SuppressWarnings("unchecked") public  DefaultPriorityQueue(Comparator<T> comparator, int initialSize);

}