package rebelsky.list; /** * The simplest kinds of lists. You can add elements at unspecified places, * delete elements, and iterate. * * @author CSC152 2004F */ public interface SimpleList { /** * Add object addMe somewhere in the list. * * @post * The list now contains an additional copy of addMe. */ public void add(Object addMe); /** * Get a new cursor for the list. */ public SimpleCursor getSimpleCursor(); /** * Get a nwe cursor for the list. */ public Cursor getCursor(); /** * Remove the object last returned by cursor c. * * @pre * where is a cursor for this list. * where.next() has been called. */ public void remove(SimpleCursor where); /** * Convert this list to a string for ease of printing. */ public String toString(); } // interface SimpleList