Class Diff


  • public class Diff
    extends java.lang.Object
    The Diff-Object is the result of two comparisons.
    See Also:
    DiffBuilder
    • Field Detail

      • differences

        private final java.lang.Iterable<Difference> differences
      • controlSource

        private final javax.xml.transform.Source controlSource
      • testSource

        private final javax.xml.transform.Source testSource
    • Constructor Detail

      • Diff

        public Diff​(javax.xml.transform.Source controlSource,
                    javax.xml.transform.Source testSource,
                    java.lang.Iterable<Difference> differences)
      • Diff

        public Diff​(javax.xml.transform.Source controlSource,
                    javax.xml.transform.Source testSource,
                    ComparisonFormatter formatter,
                    java.lang.Iterable<Difference> differences)
    • Method Detail

      • hasDifferences

        public boolean hasDifferences()
        Returns:
        true if there was at least one difference.
      • getDifferences

        public java.lang.Iterable<Difference> getDifferences()
        Returns:
        all differences found before the comparison process stopped.
      • getControlSource

        public javax.xml.transform.Source getControlSource()
      • getTestSource

        public javax.xml.transform.Source getTestSource()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object