public interface ShortIterator extends Iterator<Short>
Iterator
<
Short
>
.
See the comparison of iteration ways in the library.
Iterators of updatable and immutable collections don't support Iterator.remove()
operation. More about mutability profiles.
ShortCollection.iterator()
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(Consumer<? super Short> action)
Deprecated.
Use specialization
forEachRemaining(ShortConsumer) instead |
void |
forEachRemaining(ShortConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
short |
nextShort()
Returns the next
short element in the iteration. |
short nextShort()
short
element in the iteration. This is a primitive specialization
of the Iterator.next()
method.short
element in the iterationNoSuchElementException
- if the iteration has no more elements@Deprecated void forEachRemaining(@Nonnull Consumer<? super Short> action)
forEachRemaining(ShortConsumer)
insteadforEachRemaining
in interface Iterator<Short>
action
- the action to be performed for each elementvoid forEachRemaining(@Nonnull ShortConsumer action)
action
- the action to be performed for each element