Class BinaryDiffResult


  • public class BinaryDiffResult
    extends java.lang.Object
    Value class to hold the result of comparing two binary streams.
    Author:
    Olivier Michallat
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String actual  
      java.lang.String expected  
      int offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryDiffResult​(int offset, int expected, int actual)
      Builds a new instance.
    • Field Detail

      • offset

        public final int offset
      • expected

        public final java.lang.String expected
      • actual

        public final java.lang.String actual
    • Constructor Detail

      • BinaryDiffResult

        public BinaryDiffResult​(int offset,
                                int expected,
                                int actual)
        Builds a new instance.
        Parameters:
        offset - the offset at which the difference occurred.
        expected - the expected byte as an int in the range 0 to 255, or -1 for EOF.
        actual - the actual byte in the same format.
    • Method Detail

      • hasNoDiff

        public boolean hasNoDiff()