Package com.google.protobuf
Interface ByteString.ByteIterator
- All Known Implementing Classes:
ByteString.AbstractByteIterator
- Enclosing class:
- ByteString
This interface extends
Iterator<Byte>, so that we can return an unboxed byte.-
Method Summary
Modifier and TypeMethodDescriptionbytenextByte()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
bytein the iteration - Throws:
NoSuchElementException- if the iteration has no more elements
-