/** * Add this node as the head of the chain. * Note, this is most efficient if anyNode is the head of the chain. * * @param anyNode any node in the chain */ public void addFirst(ChainLink<E> anyNode) { ChainLink<E> node = anyNode.findHead(); addBefore(node); }