package rebelsky.lists; /** * Sequenced lists. The client gets to choose where to put * things. * * @author CSC152 2005S */ public interface SequencedList extends SimpleList { /** * Add an object at the end of the list. */ public void addAfterEnd(T addMe); /** * Add an object at the beginning of the list. */ public void addBeforeFront(T addMe); /** * Add an object immediately before the last value iterated. */ public void addBefore(Cursor c, T addMe); /** * Add an object immediately after the last value iterated. */ public void addAfter(Cursor c, T addMe); } // interface SequencedList