org.matalon.pagerankhits.dataStructures
Interface Queue

All Known Implementing Classes:
UrlsQueue

public interface Queue

This interface includes the basic queue functionality.

Author:
Yonatan Matalon

Method Summary
 java.lang.Object dequeue()
          Removes the first (top) Object in the queue.
 void enqueue(java.lang.Object obj)
          Adds the given Object to the queue.
 boolean isEmpty()
           
 

Method Detail

enqueue

public void enqueue(java.lang.Object obj)
             throws InvalidParameterException
Adds the given Object to the queue.

Parameters:
obj -
Throws:
InvalidParameterException

dequeue

public java.lang.Object dequeue()
                         throws StackEmptyException
Removes the first (top) Object in the queue.

Returns:
Returns the removed Object.
Throws:
StackEmptyException

isEmpty

public boolean isEmpty()
Returns:
Returns true, it the queue is empty, false otherwise.