Creato Parzialmente la Queue
This commit is contained in:
20
queue/QueueRules.java
Normal file
20
queue/QueueRules.java
Normal 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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user