it.unimi.dsi.fastutil.longs
Class AbstractLongPriorityQueue

java.lang.Object
  extended by it.unimi.dsi.fastutil.AbstractPriorityQueue<Long>
      extended by it.unimi.dsi.fastutil.longs.AbstractLongPriorityQueue
All Implemented Interfaces:
LongPriorityQueue, PriorityQueue<Long>
Direct Known Subclasses:
LongArrayFIFOQueue, LongArrayPriorityQueue, LongHeapPriorityQueue

public abstract class AbstractLongPriorityQueue
extends AbstractPriorityQueue<Long>
implements LongPriorityQueue

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


Constructor Summary
AbstractLongPriorityQueue()
           
 
Method Summary
 Long dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(Long x)
          Delegates to the corresponding type-specific method.
 Long first()
          Delegates to the corresponding type-specific method.
 Long last()
          Delegates to the corresponding type-specific method.
 long lastLong()
          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.longs.LongPriorityQueue
comparator, dequeueLong, enqueue, firstLong
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, isEmpty, size
 

Constructor Detail

AbstractLongPriorityQueue

public AbstractLongPriorityQueue()
Method Detail

enqueue

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

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

dequeue

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

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

first

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

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

last

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

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

lastLong

public long lastLong()
Throws an UnsupportedOperationException.

Specified by:
lastLong in interface LongPriorityQueue
Returns:
the last element.