implementato parzialmente la deque

This commit is contained in:
2014-03-17 17:45:44 +01:00
parent 08069c6b46
commit 6f3e597f65
7 changed files with 216 additions and 9 deletions

22
deque/Deque.java Normal file
View File

@@ -0,0 +1,22 @@
package deque;
import exceptions.EmptyDequeException;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 17/03/14
* Time: 16:21
*/
public interface Deque<E> {
int size();
boolean isEmpty();
E getFirst() throws EmptyDequeException;
E getLast() throws EmptyDequeException;
void addFirst (E element );
void addLast (E element);
E removeFirst() throws EmptyDequeException;
E removeLast() throws EmptyDequeException;
}