21 lines
453 B
Java
21 lines
453 B
Java
package arraylist;
|
|
|
|
/**
|
|
* Created with xgiovio.macbookair.
|
|
* User: xgiovio
|
|
* Date: 24/03/14
|
|
* Time: 14:29
|
|
*/
|
|
public interface IndexList<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();
|
|
|
|
|
|
}
|