it.unimi.dsi.fastutil.doubles
Class AbstractDoublePriorityQueue

java.lang.Object
  extended by it.unimi.dsi.fastutil.AbstractPriorityQueue<Double>
      extended by it.unimi.dsi.fastutil.doubles.AbstractDoublePriorityQueue
All Implemented Interfaces:
DoublePriorityQueue, PriorityQueue<Double>
Direct Known Subclasses:
DoubleArrayFIFOQueue, DoubleArrayPriorityQueue, DoubleHeapPriorityQueue

public abstract class AbstractDoublePriorityQueue
extends AbstractPriorityQueue<Double>
implements DoublePriorityQueue

An abstract class providing basic methods for priority queues implementing a type-specific interface.


Constructor Summary
AbstractDoublePriorityQueue()
           
 
Method Summary
 Double dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(Double x)
          Delegates to the corresponding type-specific method.
 Double first()
          Delegates to the corresponding type-specific method.
 Double last()
          Delegates to the corresponding type-specific method.
 double lastDouble()
          Throws an UnsupportedOperationException.
 
Methods inherited from class it.unimi.dsi.fastutil.AbstractPriorityQueue
changed, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoublePriorityQueue
comparator, dequeueDouble, enqueue, firstDouble
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, isEmpty, size
 

Constructor Detail

AbstractDoublePriorityQueue

public AbstractDoublePriorityQueue()
Method Detail

enqueue

public void enqueue(Double x)
Delegates to the corresponding type-specific method.

Specified by:
enqueue in interface PriorityQueue<Double>
Parameters:
x - the element to enqueue..

dequeue

public Double dequeue()
Delegates to the corresponding type-specific method.

Specified by:
dequeue in interface PriorityQueue<Double>
Returns:
the dequeued element.

first

public Double first()
Delegates to the corresponding type-specific method.

Specified by:
first in interface PriorityQueue<Double>
Returns:
the first element.

last

public Double last()
Delegates to the corresponding type-specific method.

Specified by:
last in interface PriorityQueue<Double>
Overrides:
last in class AbstractPriorityQueue<Double>
Returns:
the last element.

lastDouble

public double lastDouble()
Throws an UnsupportedOperationException.

Specified by:
lastDouble in interface DoublePriorityQueue
Returns:
the last element.