asd_library
Interface PriorityQueue_adt

All Known Implementing Classes:
Heap

public interface PriorityQueue_adt

The abstract data type of a priority queue


Method Summary
 java.lang.Comparable deleteFirst()
          Deletes the key stored into the first position of this queue.
 java.lang.Comparable getFirst()
          Returns the key stored into the first position of this queue.
 java.lang.Comparable insert(java.lang.Comparable el)
          Inserts a new key into this queue
 

Method Detail

getFirst

public java.lang.Comparable getFirst()
Returns the key stored into the first position of this queue.

Returns:
the key

deleteFirst

public java.lang.Comparable deleteFirst()
Deletes the key stored into the first position of this queue.


insert

public java.lang.Comparable insert(java.lang.Comparable el)
Inserts a new key into this queue