PrimitiveIteratorOfInt
Defined in: src/stream/Stream.ts:75
Iterator of an IntStream: adds nextInt().
Extends
Section titled “Extends”Iterator<number>
Methods
Section titled “Methods”forEachRemaining()
Section titled “forEachRemaining()”forEachRemaining(
action):void
Defined in: src/interfaces/Iterator.ts:30
Calls action for each remaining element, in order, until the iterator is exhausted.
Parameters
Section titled “Parameters”action
Section titled “action”(e) => void
Returns
Section titled “Returns”void
Throws
Section titled “Throws”NullPointerException if action is null
Inherited from
Section titled “Inherited from”hasNext()
Section titled “hasNext()”hasNext():
boolean
Defined in: src/interfaces/Iterator.ts:8
Returns true if next() would return an element.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”next()
Section titled “next()”next():
number
Defined in: src/interfaces/Iterator.ts:15
Returns the next element and advances the cursor.
Returns
Section titled “Returns”number
Throws
Section titled “Throws”NoSuchElementException if there are no more elements
Throws
Section titled “Throws”ConcurrentModificationException if the collection was structurally modified other than through this iterator
Inherited from
Section titled “Inherited from”nextInt()
Section titled “nextInt()”nextInt():
number
Defined in: src/stream/Stream.ts:80
Returns the next element; the same as next().
Returns
Section titled “Returns”number
Throws
Section titled “Throws”NoSuchElementException if no elements remain
remove()
Section titled “remove()”remove():
void
Defined in: src/interfaces/Iterator.ts:25
Removes the element last returned by next() from the underlying collection.
Returns
Section titled “Returns”void
Throws
Section titled “Throws”IllegalStateException if next() has not been called, or remove() was already called after the
last next()
Throws
Section titled “Throws”UnsupportedOperationException if the collection is unmodifiable or the iterator does not support removal
Throws
Section titled “Throws”ConcurrentModificationException if the collection was structurally modified other than through this iterator