Class RopeByteString.PieceIterator

java.lang.Object
com.google.protobuf.RopeByteString.PieceIterator
All Implemented Interfaces:
Iterator<ByteString.LeafByteString>
Enclosing class:
RopeByteString

private static final class RopeByteString.PieceIterator extends Object implements Iterator<ByteString.LeafByteString>
This class is a continuable tree traversal, which keeps the state information which would exist on the stack in a recursive traversal instead on a stack of "Bread Crumbs". The maximum depth of the stack in this iterator is the same as the depth of the tree being traversed.

This iterator is used to implement RopeByteString.equalsFragments(ByteString).