import java.util.Iterator; // Interface: CS210OrderedListADT // // License Information: // This class is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation. // // This class is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. /** * The CS210ListADT interface specifies the methods that * a list should have, as identified by the students in CS210 on * 10 October, 2008. * * * Modified Oct. 11, 2009 - Nathan Sprague * * @author Pam Cutter * @version October 14, 2008 */ public interface CS210OrderedListADT extends CS210ListADT { /** Adds the given data value at the appropriate position in * the list.
* Precondition: newData is Comparable */ void add(T newData); /** Appends all items from the given list to the end of the current * list, in the order they appear in fromList. */ void addAll(CS210OrderedListADT fromList); }