Class EntityUnifiedDiff<T extends EntityReference>

    • Constructor Detail

      • EntityUnifiedDiff

        public EntityUnifiedDiff​(T previousReference,
                                 T nextReference)
        Creates a new instance to hold the differences between the specified entity versions.
        Parameters:
        previousReference - the reference to the previous version of the entity
        nextReference - the reference to the next version of the entity
    • Method Detail

      • getPreviousReference

        public T getPreviousReference()
        Returns:
        the reference to the previous version of the entity
      • getNextReference

        public T getNextReference()
        Returns:
        the reference to the previous version of the entity
      • getReference

        public T getReference()
        Returns:
        the reference to the entity whose versions are being compared
      • getType

        public org.xwiki.diff.Delta.Type getType()
        Returns:
        whether the entity has been added, deleted or modified