/** Returns an iterator of all the nodes in the list. */ public Iterator positions() { return new PositionIterator(this); } /** Returns an iterator of all the elements in the list. */ public Iterator elements() { return new ElementIterator(this); }