public class CountingDiff extends Object implements org.apache.jackrabbit.oak.spi.state.NodeStateDiff
NodeStateDiff implementation that counts the differences between
two node states, including their sub tree.| Constructor and Description |
|---|
CountingDiff() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
childNodeAdded(String name,
org.apache.jackrabbit.oak.spi.state.NodeState after) |
boolean |
childNodeChanged(String name,
org.apache.jackrabbit.oak.spi.state.NodeState before,
org.apache.jackrabbit.oak.spi.state.NodeState after) |
boolean |
childNodeDeleted(String name,
org.apache.jackrabbit.oak.spi.state.NodeState before) |
static int |
countChanges(org.apache.jackrabbit.oak.spi.state.NodeState before,
org.apache.jackrabbit.oak.spi.state.NodeState after) |
int |
getNumChanges() |
boolean |
propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after) |
boolean |
propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before,
org.apache.jackrabbit.oak.api.PropertyState after) |
boolean |
propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before) |
public static int countChanges(org.apache.jackrabbit.oak.spi.state.NodeState before, org.apache.jackrabbit.oak.spi.state.NodeState after)
public boolean propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after)
propertyAdded in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic boolean propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before, org.apache.jackrabbit.oak.api.PropertyState after)
propertyChanged in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic boolean propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before)
propertyDeleted in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic boolean childNodeAdded(String name, org.apache.jackrabbit.oak.spi.state.NodeState after)
childNodeAdded in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic boolean childNodeChanged(String name, org.apache.jackrabbit.oak.spi.state.NodeState before, org.apache.jackrabbit.oak.spi.state.NodeState after)
childNodeChanged in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic boolean childNodeDeleted(String name, org.apache.jackrabbit.oak.spi.state.NodeState before)
childNodeDeleted in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiffpublic int getNumChanges()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.