Class SimpleDifferenceTransform<T extends Element<T>>

    • Constructor Detail

      • SimpleDifferenceTransform

        public SimpleDifferenceTransform()
        Deprecated.
    • Method Detail

      • transform

        @Nullable
        public Difference transform​(@Nullable
                                    T oldElement,
                                    @Nullable
                                    T newElement,
                                    @Nonnull
                                    Difference difference)
        Deprecated.
        Description copied from interface: DifferenceTransform
        Returns a transformed version of the difference. If this method returns null, the difference is discarded and not reported. Therefore, if you don't want to transform a difference, just return it.

        The code of the supplied difference will match at least one of the regexes returned from the DifferenceTransform.getDifferenceCodePatterns() method.

        Specified by:
        transform in interface DifferenceTransform<T extends Element<T>>
        Parameters:
        oldElement - the old differing element
        newElement - the new differing element
        difference - the difference description
        Returns:
        the transformed difference or the passed in difference if no transformation necessary or null if the difference should be discarded