at.jku.ssw
Class Queue

java.lang.Object
  extended by at.jku.ssw.Queue

public abstract class Queue
extends java.lang.Object

A FIFO (first-in-first-out) queue of characters.


Constructor Summary
Queue()
           
 
Method Summary
abstract  char get()
          Retrieves and removes the head of this queue, Exception if this queue is empty.
abstract  Iterator iterator()
          Returns an iterator of the values in this queue.
abstract  void put(char value)
          Inserts the value into this queue.
abstract  int size()
          Returns the number of values in this queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Method Detail

put

public abstract void put(char value)
                  throws java.lang.Exception
Inserts the value into this queue.

Throws:
java.lang.Exception

get

public abstract char get()
                  throws java.lang.Exception
Retrieves and removes the head of this queue, Exception if this queue is empty.

Throws:
java.lang.Exception

size

public abstract int size()
Returns the number of values in this queue.


iterator

public abstract Iterator iterator()
Returns an iterator of the values in this queue.