Package com.google.protobuf
Interface ByteString.ByteIterator
- Enclosing class:
ByteString
This interface extends
Iterator<Byte>
, so that we can return an unboxed byte
.-
Method Summary
Modifier and TypeMethodDescriptionbyte
nextByte()
An alternative toIterator.next()
that returns an unboxed primitivebyte
.Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
nextByte
byte nextByte()An alternative toIterator.next()
that returns an unboxed primitivebyte
.- Returns:
- the next
byte
in the iteration - Throws:
NoSuchElementException
- if the iteration has no more elements
-