23 lines
577 B
Java
23 lines
577 B
Java
package arraylist;
|
|
|
|
/**
|
|
* Created with xgiovio.macbookair.
|
|
* User: xgiovio
|
|
* Date: 24/03/14
|
|
* Time: 14:29
|
|
*/
|
|
//Copyright (c) 2003 Brown University, Providence, RI
|
|
//Additional modifications and methods by xgiovio
|
|
public interface IndexList<E> extends Iterable<E> {
|
|
|
|
|
|
public E remove(int i) throws IndexOutOfBoundsException;
|
|
public void add(int i, E e) throws IndexOutOfBoundsException;
|
|
public E set(int i, E e) throws IndexOutOfBoundsException;
|
|
public E get(int i) throws IndexOutOfBoundsException;
|
|
public boolean isEmpty();
|
|
public int size();
|
|
|
|
|
|
}
|