Class Difference

    • Constructor Detail

      • Difference

        public Difference​(Comparison comparison,
                          ComparisonResult result)
        Combines comparison and result.
        Parameters:
        comparison - the comparison
        result - the result of the comparison
    • Method Detail

      • getResult

        public ComparisonResult getResult()
        The result of the difference.
        Returns:
        result of the difference
      • getComparison

        public Comparison getComparison()
        The details of the comparison.
        Returns:
        details of the comparison
      • toString

        public java.lang.String toString​(ComparisonFormatter formatter)
        Returns a string representation of this difference using the given ComparisonFormatter
        Parameters:
        formatter - the ComparisonFormatter to use
        Returns:
        a string representation of this difference
      • toString

        public java.lang.String toString()
        Returns a string representation of this difference using DefaultComparisonFormatter
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this difference