Enumeration
Defined in: src/interfaces/Iterator.ts:34
A legacy cursor (Vector.elements, Collections.enumeration). Not fail-fast.
Type Parameters
Section titled “Type Parameters”E
Methods
Section titled “Methods”asIterator()
Section titled “asIterator()”asIterator():
Iterator<E>
Defined in: src/interfaces/Iterator.ts:43
Adapts this enumeration to an Iterator whose remove() throws UnsupportedOperationException.
Returns
Section titled “Returns”Iterator<E>
hasMoreElements()
Section titled “hasMoreElements()”hasMoreElements():
boolean
Defined in: src/interfaces/Iterator.ts:36
Returns true if nextElement() would return an element.
Returns
Section titled “Returns”boolean
nextElement()
Section titled “nextElement()”nextElement():
E
Defined in: src/interfaces/Iterator.ts:41
Returns the next element.
Returns
Section titled “Returns”E
Throws
Section titled “Throws”NoSuchElementException if there are no more elements