Class CountingDiff

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.spi.state.NodeStateDiff

    public class CountingDiff
    extends java.lang.Object
    implements org.apache.jackrabbit.oak.spi.state.NodeStateDiff
    A NodeStateDiff implementation that counts the differences between two node states, including their sub tree.
    • Constructor Summary

      Constructors 
      Constructor Description
      CountingDiff()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean childNodeAdded​(java.lang.String name, org.apache.jackrabbit.oak.spi.state.NodeState after)  
      boolean childNodeChanged​(java.lang.String name, org.apache.jackrabbit.oak.spi.state.NodeState before, org.apache.jackrabbit.oak.spi.state.NodeState after)  
      boolean childNodeDeleted​(java.lang.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountingDiff

        public CountingDiff()
    • Method Detail

      • countChanges

        public static int countChanges​(org.apache.jackrabbit.oak.spi.state.NodeState before,
                                       org.apache.jackrabbit.oak.spi.state.NodeState after)
      • propertyAdded

        public boolean propertyAdded​(org.apache.jackrabbit.oak.api.PropertyState after)
        Specified by:
        propertyAdded in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • propertyChanged

        public boolean propertyChanged​(org.apache.jackrabbit.oak.api.PropertyState before,
                                       org.apache.jackrabbit.oak.api.PropertyState after)
        Specified by:
        propertyChanged in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • propertyDeleted

        public boolean propertyDeleted​(org.apache.jackrabbit.oak.api.PropertyState before)
        Specified by:
        propertyDeleted in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • childNodeAdded

        public boolean childNodeAdded​(java.lang.String name,
                                      org.apache.jackrabbit.oak.spi.state.NodeState after)
        Specified by:
        childNodeAdded in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • childNodeChanged

        public boolean childNodeChanged​(java.lang.String name,
                                        org.apache.jackrabbit.oak.spi.state.NodeState before,
                                        org.apache.jackrabbit.oak.spi.state.NodeState after)
        Specified by:
        childNodeChanged in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • childNodeDeleted

        public boolean childNodeDeleted​(java.lang.String name,
                                        org.apache.jackrabbit.oak.spi.state.NodeState before)
        Specified by:
        childNodeDeleted in interface org.apache.jackrabbit.oak.spi.state.NodeStateDiff
      • getNumChanges

        public int getNumChanges()