it.unimi.dsi.fastutil.floats
Class AbstractFloatPriorityQueue

java.lang.Object
  extended byit.unimi.dsi.fastutil.AbstractPriorityQueue
      extended byit.unimi.dsi.fastutil.floats.AbstractFloatPriorityQueue
All Implemented Interfaces:
FloatPriorityQueue, PriorityQueue
Direct Known Subclasses:
FloatArrayPriorityQueue, FloatHeapPriorityQueue

public abstract class AbstractFloatPriorityQueue
extends AbstractPriorityQueue
implements FloatPriorityQueue

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


Constructor Summary
AbstractFloatPriorityQueue()
           
 
Method Summary
 Object dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(Object x)
          Delegates to the corresponding type-specific method.
 Object first()
          Delegates to the corresponding type-specific method.
 Object last()
          Delegates to the corresponding type-specific method.
 float lastFloat()
          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.floats.FloatPriorityQueue
dequeueFloat, enqueue, firstFloat
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, comparator, isEmpty, size
 

Constructor Detail

AbstractFloatPriorityQueue

public AbstractFloatPriorityQueue()
Method Detail

enqueue

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

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

dequeue

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

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

first

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

Specified by:
first in interface PriorityQueue
Returns:
the first element.

last

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

Specified by:
last in interface PriorityQueue
Overrides:
last in class AbstractPriorityQueue

lastFloat

public float lastFloat()
Throws an UnsupportedOperationException.

Specified by:
lastFloat in interface FloatPriorityQueue
Returns:
the rear element.