private static boolean isInitializationPhase(NodeState before, NodeState after) { return !comparePropertiesAgainstBaseState(after, before, new DefaultNodeStateDiff() { @Override public boolean propertyAdded(PropertyState after) { return !after.getName().equals(VERSION_STORE_INIT); } }); } }
private static boolean isInitializationPhase(NodeState before, NodeState after) { return !comparePropertiesAgainstBaseState(after, before, new DefaultNodeStateDiff() { @Override public boolean propertyAdded(PropertyState after) { return !after.getName().equals(VERSION_STORE_INIT); } }); } }
@NotNull final NodeStateDiff diff) { if (!withoutPropertyChanges) { if (!AbstractNodeState.comparePropertiesAgainstBaseState(node, base, diff)) { return false;
@NotNull final NodeStateDiff diff) { if (!withoutPropertyChanges) { if (!AbstractNodeState.comparePropertiesAgainstBaseState(node, base, diff)) { return false;
/** * Compares the given {@code node} against the {@code base} state and * reports the differences to the {@link NodeStateDiff}. * * @param node the node to compare. * @param base the base node to compare against. * @param diff handler of node state differences * @return {@code true} if the full diff was performed, or * {@code false} if it was aborted as requested by the handler * (see the {@link NodeStateDiff} contract for more details) */ @Override public boolean compare(@NotNull final AbstractDocumentNodeState node, @NotNull final AbstractDocumentNodeState base, @NotNull NodeStateDiff diff) { if (!AbstractNodeState.comparePropertiesAgainstBaseState(node, base, diff)) { return false; } if (node.hasNoChildren() && base.hasNoChildren()) { return true; } return new JsopNodeStateDiffer(diffCache.getChanges(base.getRootRevision(), node.getRootRevision(), node.getPath(), new DiffCache.Loader() { @Override public String call() { return diffImpl(base, node); } })).withoutPropertyChanges().compare(node, base, diff); }
/** * Compares the given {@code node} against the {@code base} state and * reports the differences to the {@link NodeStateDiff}. * * @param node the node to compare. * @param base the base node to compare against. * @param diff handler of node state differences * @return {@code true} if the full diff was performed, or * {@code false} if it was aborted as requested by the handler * (see the {@link NodeStateDiff} contract for more details) */ @Override public boolean compare(@NotNull final AbstractDocumentNodeState node, @NotNull final AbstractDocumentNodeState base, @NotNull NodeStateDiff diff) { if (!AbstractNodeState.comparePropertiesAgainstBaseState(node, base, diff)) { return false; } if (node.hasNoChildren() && base.hasNoChildren()) { return true; } return new JsopNodeStateDiffer(diffCache.getChanges(base.getRootRevision(), node.getRootRevision(), node.getPath(), new DiffCache.Loader() { @Override public String call() { return diffImpl(base, node); } })).withoutPropertyChanges().compare(node, base, diff); }
if (!comparePropertiesAgainstBaseState(state, base, diff)) { return false;
if (!comparePropertiesAgainstBaseState(state, base, diff)) { return false;
return; comparePropertiesAgainstBaseState(state, expected, new DefaultNodeStateDiff() { @Override public boolean propertyAdded(PropertyState after) {