/** * @author geoffreytowell * This interface intentionally and slavishly follows the * methods defined for java.util.ArrayList */ public interface ArraListInterface { boolean add(T t); void add(int index, T t) throws IndexOutOfBoundsException; T get(int index) throws IndexOutOfBoundsException; void remove(int index) throws IndexOutOfBoundsException; T set(int index, T t) throws IndexOutOfBoundsException; int size(); int indexOf(T t); int lastIndexOf(T t); void clear(); }