Skip to content
Buy me a coffee

Enumeration

Defined in: src/interfaces/Iterator.ts:34

A legacy cursor (Vector.elements, Collections.enumeration). Not fail-fast.

E

asIterator(): Iterator<E>

Defined in: src/interfaces/Iterator.ts:43

Adapts this enumeration to an Iterator whose remove() throws UnsupportedOperationException.

Iterator<E>


hasMoreElements(): boolean

Defined in: src/interfaces/Iterator.ts:36

Returns true if nextElement() would return an element.

boolean


nextElement(): E

Defined in: src/interfaces/Iterator.ts:41

Returns the next element.

E

NoSuchElementException if there are no more elements