public class ShouldNotBeEqualWithinOffset extends BasicErrorMessageFactory
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldNotBeEqualWithinOffset(java.lang.Number actual,
java.lang.Number expected,
Offset<T> offset,
java.lang.Number difference) |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Number> |
shouldNotBeEqual(T actual,
T expected,
Offset<T> offset,
T difference)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldNotBeEqualWithinOffset(java.lang.Number actual, java.lang.Number expected, Offset<T> offset, java.lang.Number difference)
public static <T extends java.lang.Number> ErrorMessageFactory shouldNotBeEqual(T actual, T expected, Offset<T> offset, T difference)
ShouldNotBeEqualWithinOffset
.T
- guarantees that the values used in this factory have the same type.actual
- the actual value in the failed assertion.expected
- the expected value in the failed assertion.offset
- the given positive offset.difference
- the effective difference between actual and expected.ErrorMessageFactory
.