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.
|
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 elementsvoid forEachRemaining(@Nonnull ByteConsumer action)
action
- the action to be performed for each element