class BinaryDiffResult {
  private static final int EOF = -1;

  public final int offset;
  public final String expected;
  public final String actual;

  /**
   * Builds a new instance.
   *
   * @param offset the offset at which the difference occurred.
   * @param expected the expected byte as an int in the range 0 to 255, or -1 for EOF.
   * @param actual the actual byte in the same format.
   */
  public BinaryDiffResult(int offset, int expected, int actual) {
    this.offset = offset;
    this.expected = describe(expected);
    this.actual = describe(actual);
  }

  public boolean hasNoDiff() {
    return offset == EOF;
  }

  public boolean hasDiff() {
    return !hasNoDiff();
  }

  public static BinaryDiffResult noDiff() {
    return new BinaryDiffResult(EOF, 0, 0);
  }

  private String describe(int b) {<FILL_FUNCTION_BODY>}
}

    return (b == EOF) ? "EOF" : "0x" + Integer.toHexString(b).toUpperCase();
  
<no_super_class>