it.unimi.dsi.fastutil.shorts
Class AbstractShortPriorityQueue

java.lang.Object
  extended by it.unimi.dsi.fastutil.AbstractPriorityQueue<java.lang.Short>
      extended by it.unimi.dsi.fastutil.shorts.AbstractShortPriorityQueue
All Implemented Interfaces:
PriorityQueue<java.lang.Short>, ShortPriorityQueue
Direct Known Subclasses:
ShortArrayPriorityQueue, ShortHeapPriorityQueue

public abstract class AbstractShortPriorityQueue
extends AbstractPriorityQueue<java.lang.Short>
implements ShortPriorityQueue

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


Constructor Summary
AbstractShortPriorityQueue()
           
 
Method Summary
 java.lang.Short dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(java.lang.Short x)
          Delegates to the corresponding type-specific method.
 java.lang.Short first()
          Delegates to the corresponding type-specific method.
 java.lang.Short last()
          Delegates to the corresponding type-specific method.
 short lastShort()
          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.shorts.ShortPriorityQueue
comparator, dequeueShort, enqueue, firstShort
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, isEmpty, size
 

Constructor Detail

AbstractShortPriorityQueue

public AbstractShortPriorityQueue()
Method Detail

enqueue

public void enqueue(java.lang.Short x)
Delegates to the corresponding type-specific method.

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

dequeue

public java.lang.Short dequeue()
Delegates to the corresponding type-specific method.

Specified by:
dequeue in interface PriorityQueue<java.lang.Short>
Returns:
the dequeued element.

first

public java.lang.Short first()
Delegates to the corresponding type-specific method.

Specified by:
first in interface PriorityQueue<java.lang.Short>
Returns:
the first element.

last

public java.lang.Short last()
Delegates to the corresponding type-specific method.

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

lastShort

public short lastShort()
Throws an UnsupportedOperationException.

Specified by:
lastShort in interface ShortPriorityQueue
Returns:
the rear element.