implementato parzialmente la deque
This commit is contained in:
22
deque/Deque.java
Normal file
22
deque/Deque.java
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user