package jds; import jds.Stack; import jds.Queue; /** * Deque - collection with both stack-like and queue-like behavior; * for use with book * Classic Data Structures * in Java * by Timothy A Budd, * published by Addison-Wesley, 2001. * * @author Timothy A. Budd * @version 1.1 September 1999 * @see jds.Collection */ public interface Deque extends Stack, Queue { /** * add a new value to front of the collection * * @param value element to be inserted into collection */ public void addFirst (Object value); };