Public Member Functions | |
boolean | hasNext () |
LeafByteString | next () |
void | remove () |
Private Member Functions | |
LeafByteString | getLeafByLeft (ByteString root) |
LeafByteString | getNextNonEmptyLeaf () |
PieceIterator (ByteString root) | |
Private Attributes | |
final ArrayDeque< RopeByteString > | breadCrumbs |
LeafByteString | next |
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).
Definition at line 715 of file RopeByteString.java.
|
inlineprivate |
Definition at line 719 of file RopeByteString.java.
|
inlineprivate |
Definition at line 731 of file RopeByteString.java.
|
inlineprivate |
Definition at line 741 of file RopeByteString.java.
|
inline |
Definition at line 757 of file RopeByteString.java.
|
inline |
Returns the next item and advances one com.google.protobuf.ByteString.LeafByteString.
Definition at line 767 of file RopeByteString.java.
|
inline |
Definition at line 777 of file RopeByteString.java.
|
private |
Definition at line 716 of file RopeByteString.java.
|
private |
Definition at line 717 of file RopeByteString.java.