setNext

abstract fun setNext(element: Element)(source)

Changes the next element if it is present or throws NoFollowingElementInIteratorException if there is no next element.

Parameters

element

The element to set as the new next element.

Throws

when there is no next element.