DAT
Interface QueueChar

All Known Implementing Classes:
QueueCharBlock, QueueCharLinked

public interface QueueChar

Character queue interface.


Method Summary
 char dequeue()
          remove the first item in the queue
 void enqueue(char a)
          add a new item to the queue
 char examine()
          examine the first item in the queue
 boolean isEmpty()
          test whether the queue is empty
 

Method Detail

isEmpty

public boolean isEmpty()
test whether the queue is empty

Returns:
true if the queue is empty, false otherwise

enqueue

public void enqueue(char a)
add a new item to the queue

Parameters:
a - the item to add

examine

public char examine()
             throws Underflow
examine the first item in the queue

Returns:
the first item
Throws:
Underflow - if the queue is empty

dequeue

public char dequeue()
             throws Underflow
remove the first item in the queue

Returns:
the first item
Throws:
Underflow - if the queue is empty