public interface LinkedListInterfaceComp> { int size(); boolean isEmpty(); Comparable first(); Comparable last(); void addLast(Comparable c); void addFirst(Comparable c); Comparable removeFirst(); Comparable removeLast(); Comparable remove(Comparable r); /** * Return true iff the linked list contains * an object that is equal to the target, where equality * is given by compareTo returning 0. * @param iD the object to be searched for * @return true iff the list contains an equal object */ boolean contains(Comparable iD); }