import java.util.Collection; /** * ListInterface */ public interface ListInterface<E> extends Collection<E>{ /** * Checks if the value is inside our List * @param i value to check * @return boolean value of the presence of the value */ public abstract boolean contains(Object i); /** * Remove the value at a certain index * @param i index to remove * @return status of the removal */ public abstract boolean remove(Integer i); /** * Get the first value of our List * @return the first value of our List */ public abstract E getFirst(); /** * Get the last value of our List * @return the last value of our List */ public abstract E getLast(); /** * add a value to our List * @param elem value to add * @return status of the adding */ public abstract boolean add(E elem); }