Interface IQueue

All Known Implementing Classes:
JavaQueue

public interface IQueue

Required methods for the Queue ADT.


Method Summary
 Object dequeue()
          Removes and returns the front object on this.
 void enqueue(Object anObject)
          Enqueues the given object onto this.
 Object front()
          Returns the front object on this.
 boolean isEmpty()
          Returns whether or not this is empty.
 int size()
          Returns the number of objects on this.
 

Method Detail

enqueue

public void enqueue(Object anObject)
Enqueues the given object onto this.

Parameters:
anObject - object to enqueue

dequeue

public Object dequeue()
Removes and returns the front object on this.


front

public Object front()
Returns the front object on this.


size

public int size()
Returns the number of objects on this.


isEmpty

public boolean isEmpty()
Returns whether or not this is empty.