Top Description Fields Constructors Methods
org.assertj.core.internal

public Class BinaryDiffResult

extends Object
Class Inheritance

Value class to hold the result of comparing two binary streams.
Author
Olivier Michallat

Field Summary

Modifier and TypeField and Description
public final String
private static final int
public final String
public final int

Constructor Summary

AccessConstructor and Description
public
BinaryDiffResult(int
the offset at which the difference occurred.
offset
,
int
the expected byte as an int in the range 0 to 255, or -1 for EOF.
expected
,
int
the actual byte in the same format.
actual
)

Builds a new instance.

Method Summary

Modifier and TypeMethod and Description
private String
describe(int b)

public boolean
public boolean
public static BinaryDiffResult
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actualback to summary
public final String actual
EOFback to summary
private static final int EOF
expectedback to summary
public final String expected
offsetback to summary
public final int offset

Constructor Detail

BinaryDiffResultback to summary
public BinaryDiffResult(int offset, int expected, int actual)

Builds a new instance.

Parameters
offset:int

the offset at which the difference occurred.

expected:int

the expected byte as an int in the range 0 to 255, or -1 for EOF.

actual:int

the actual byte in the same format.

Method Detail

describeback to summary
private String describe(int b)
hasDiffback to summary
public boolean hasDiff()
hasNoDiffback to summary
public boolean hasNoDiff()
noDiffback to summary
public static BinaryDiffResult noDiff()