Skip to content
Buy me a coffee

PrimitiveIteratorOfLong

Defined in: src/stream/Stream.ts:83

Iterator of a LongStream: adds nextLong().

forEachRemaining(action): void

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

Calls action for each remaining element, in order, until the iterator is exhausted.

(e) => void

void

NullPointerException if action is null

Iterator.forEachRemaining


hasNext(): boolean

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

Returns true if next() would return an element.

boolean

Iterator.hasNext


next(): number

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

Returns the next element and advances the cursor.

number

NoSuchElementException if there are no more elements

ConcurrentModificationException if the collection was structurally modified other than through this iterator

Iterator.next


nextLong(): number

Defined in: src/stream/Stream.ts:88

Returns the next element; the same as next().

number

NoSuchElementException if no elements remain


remove(): void

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

Removes the element last returned by next() from the underlying collection.

void

IllegalStateException if next() has not been called, or remove() was already called after the last next()

UnsupportedOperationException if the collection is unmodifiable or the iterator does not support removal

ConcurrentModificationException if the collection was structurally modified other than through this iterator

Iterator.remove