class ImplicitLinkedHashCollection extends AbstractCollection<E> {

    final public void moveToEnd(E element) {
        if (element.prev() == INVALID_INDEX || element.next() == INVALID_INDEX) {
            throw new RuntimeException("Element " + element + " is not in the collection.");
        }
        Element prevElement = indexToElement(head, elements, element.prev());
        Element nextElement = indexToElement(head, elements, element.next());
        int slot = prevElement.next();
        prevElement.setNext(element.next());
        nextElement.setPrev(element.prev());
        addToListTail(head, elements, slot);
    }

    public  ImplicitLinkedHashCollection();
    public  ImplicitLinkedHashCollection(int expectedNumElements);
    public  ImplicitLinkedHashCollection(Iterator<E> iter);

}