package deque; import exceptions.EmptyDequeException; /** * Created with xgiovio.macbookair. * User: xgiovio * Date: 17/03/14 * Time: 16:21 */ //Copyright (c) 2003 Brown University, Providence, RI //Additional modifications and methods by xgiovio public interface Deque { 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; }