it.unimi.dsi.fastutil.chars
Class AbstractCharPriorityQueue

java.lang.Object
  extended by it.unimi.dsi.fastutil.AbstractPriorityQueue<java.lang.Character>
      extended by it.unimi.dsi.fastutil.chars.AbstractCharPriorityQueue
All Implemented Interfaces:
CharPriorityQueue, PriorityQueue<java.lang.Character>
Direct Known Subclasses:
CharArrayPriorityQueue, CharHeapPriorityQueue

public abstract class AbstractCharPriorityQueue
extends AbstractPriorityQueue<java.lang.Character>
implements CharPriorityQueue

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


Constructor Summary
AbstractCharPriorityQueue()
           
 
Method Summary
 java.lang.Character dequeue()
          Delegates to the corresponding type-specific method.
 void enqueue(java.lang.Character x)
          Delegates to the corresponding type-specific method.
 java.lang.Character first()
          Delegates to the corresponding type-specific method.
 java.lang.Character last()
          Delegates to the corresponding type-specific method.
 char lastChar()
          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.chars.CharPriorityQueue
comparator, dequeueChar, enqueue, firstChar
 
Methods inherited from interface it.unimi.dsi.fastutil.PriorityQueue
changed, clear, isEmpty, size
 

Constructor Detail

AbstractCharPriorityQueue

public AbstractCharPriorityQueue()
Method Detail

enqueue

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

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

dequeue

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

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

first

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

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

last

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

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

lastChar

public char lastChar()
Throws an UnsupportedOperationException.

Specified by:
lastChar in interface CharPriorityQueue
Returns:
the rear element.