21 lines
471 B
Java
21 lines
471 B
Java
package queue;
|
|
|
|
import exceptions.EmpyQueueException;
|
|
import exceptions.EmpyStackException;
|
|
|
|
/**
|
|
* Created with xgiovio.macbookair.
|
|
* User: xgiovio
|
|
* Date: 10/03/14
|
|
* Time: 15:45
|
|
*/
|
|
abstract public class QueueRules <E> {
|
|
|
|
abstract public void enqueue (E element);
|
|
abstract public E dequeue () throws EmpyQueueException;
|
|
abstract public E front() throws EmpyQueueException;
|
|
abstract public boolean isEmpty();
|
|
abstract public int size();
|
|
|
|
}
|