22 lines
413 B
Java
22 lines
413 B
Java
public interface ListInterface<T>{
|
|
public void add(T newEntry);
|
|
|
|
public void add(int newPosition, T newEntry);
|
|
|
|
public T remove(int givenPosition);
|
|
|
|
public void clear();
|
|
|
|
public T replace(int givenPosition, T newEntry);
|
|
|
|
public T getEntry(int givenPosition);
|
|
|
|
public T[] toArray();
|
|
|
|
public boolean contains(T anEntry);
|
|
|
|
public int getLenght();
|
|
|
|
public boolean isEmpty();
|
|
}
|