[cvs] / jsr166 / src / main / java / util / PriorityQueue.java Repository:
ViewVC logotype

View of /jsr166/src/main/java/util/PriorityQueue.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (annotate)
Wed May 14 21:30:45 2003 UTC (14 years, 5 months ago) by tim
Branch: MAIN
Moved main source rooted at . to ./src/main
Moved test source rooted at ./etc/testcases to ./src/test
package java.util;

import java.util.*;

/**
 * An unbounded (resizable) priority queue based on a priority
 * heap.The take operation returns the least element with respect to
 * the given ordering. (If more than one element is tied for least
 * value, one of them is arbitrarily chosen to be returned -- no
 * guarantees are made for ordering across ties.) Ordering follows the
 * java.util.Collection conventions: Either the elements must be
 * Comparable, or a Comparator must be supplied. Comparison failures
 * throw ClassCastExceptions during insertions and extractions.
 **/
public class PriorityQueue<E> extends AbstractCollection<E> implements Queue<E> {
    public PriorityQueue(int initialCapacity) {}
    public PriorityQueue(int initialCapacity, Comparator comparator) {}

    public PriorityQueue(int initialCapacity, Collection initialElements) {}

    public PriorityQueue(int initialCapacity, Comparator comparator, Collection initialElements) {}

    public boolean add(E x) {
        return false;
    }
    public boolean offer(E x) {
        return false;
    }
    public boolean remove(Object x) {
        return false;
    }

    public E remove() {
        return null;
    }
    public Iterator<E> iterator() {
      return null;
    }

    public E element() {
        return null;
    }
    public E poll() {
        return null;
    }
    public E peek() {
        return null;
    }

    public boolean isEmpty() {
        return false;
    }
    public int size() {
        return 0;
    }
    public Object[] toArray() {
        return null;
    }

    public <T> T[] toArray(T[] array) {
        return null;
    }

}

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8