protected static interface AbstractMessage.BuilderParent
Modifier and Type | Method and Description |
---|---|
void |
markDirty()
A builder becomes dirty whenever a field is modified -- including fields in nested builders
-- and becomes clean when build() is called.
|
void markDirty()
To this end, a builder calls markDirty() on its parent whenever it transitions from clean to dirty. The parent must propagate this call to its own parent, unless it was already dirty, in which case the grandparent must necessarily already be dirty as well. The parent can only transition back to "clean" after calling build() on all children.
Copyright © 2008–2019. All rights reserved.