Creato Parzialmente la Queue

This commit is contained in:
2014-03-10 16:36:55 +01:00
parent 84aa1374c7
commit 0759ac55e6
4 changed files with 133 additions and 0 deletions

20
queue/QueueRules.java Normal file
View File

@@ -0,0 +1,20 @@
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();
}