it.unimi.dsi.fastutil.ints
Class AbstractIntPriorityQueue

java.lang.Object
  extended by it.unimi.dsi.fastutil.AbstractPriorityQueue<Integer>
      extended by it.unimi.dsi.fastutil.ints.AbstractIntPriorityQueue
All Implemented Interfaces:
IntPriorityQueue, PriorityQueue<Integer>
Direct Known Subclasses:
IntArrayFIFOQueue, IntArrayPriorityQueue, IntHeapPriorityQueue

public abstract class AbstractIntPriorityQueue
extends AbstractPriorityQueue<Integer>
implements IntPriorityQueue

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


Constructor Summary
AbstractIntPriorityQueue()
           
 
Method Summary
 Integer dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(Integer x)
          Delegates to the corresponding type-specific method.
 Integer first()
          Delegates to the corresponding type-specific method.
 Integer last()
          Delegates to the corresponding type-specific method.
 int lastInt()
          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.ints.IntPriorityQueue
comparator, dequeueInt, enqueue, firstInt
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, isEmpty, size
 

Constructor Detail

AbstractIntPriorityQueue

public AbstractIntPriorityQueue()
Method Detail

enqueue

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

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

dequeue

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

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

first

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

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

last

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

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

lastInt

public int lastInt()
Throws an UnsupportedOperationException.

Specified by:
lastInt in interface IntPriorityQueue
Returns:
the last element.