public interface ByteIterator extends Iterator<Byte>
Iterator
<
Byte
>
.
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.
ByteCollection.iterator()
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(ByteConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
void |
forEachRemaining(Consumer<? super Byte> action)
Deprecated.
Use specialization
forEachRemaining(ByteConsumer) instead |
byte |
nextByte()
Returns the next
byte element in the iteration. |
byte nextByte()
byte
element in the iteration. This is a primitive specialization
of the Iterator.next()
method.byte
element in the iterationNoSuchElementException
- if the iteration has no more elements@Deprecated void forEachRemaining(@Nonnull Consumer<? super Byte> action)
forEachRemaining(ByteConsumer)
insteadforEachRemaining
in interface Iterator<Byte>
action
- the action to be performed for each elementvoid forEachRemaining(@Nonnull ByteConsumer action)
action
- the action to be performed for each element