20 lines
375 B
Java
20 lines
375 B
Java
package queue;
|
|
|
|
import exceptions.EmptyQueueException;
|
|
|
|
/**
|
|
* Created with xgiovio.macbookair.
|
|
* User: xgiovio
|
|
* Date: 10/03/14
|
|
* Time: 15:45
|
|
*/
|
|
public interface Queue<E> {
|
|
|
|
public void enqueue (E element);
|
|
public E dequeue () throws EmptyQueueException;
|
|
public E front() throws EmptyQueueException;
|
|
public boolean isEmpty();
|
|
public int size();
|
|
|
|
}
|