switch (type) {
case SUBTREE_MODIFIED:
return resolveSubtreeChangeEvent(state, node);
+ case APPEARED:
case WRITE:
Preconditions.checkArgument(maybeAfter.isPresent(),
"Modification at {} has type {} but no after-data", state.getPath(), type);
return resolveReplacedEvent(state, maybeBefore.get(), maybeAfter.get());
case DELETE:
+ case DISAPPEARED:
Preconditions.checkArgument(maybeBefore.isPresent(),
"Modification at {} has type {} but no before-data", state.getPath(), type);
final ResolveDataChangeState childState = state.child(childMod.getIdentifier());
switch (childMod.getModificationType()) {
- case WRITE:
+ case APPEARED:
case DELETE:
+ case DISAPPEARED:
+ case WRITE:
if (resolveAnyChangeEvent(childState, childMod)) {
scope = DataChangeScope.ONE;
}