public static interface Correspondence.DiffFormatter<A,E>
A
and E
.
This interface will normally be implemented using a lambda or a method reference, and the
resulting object will normally be passed directly to Correspondence.formattingDiffsUsing(com.google.common.truth.Correspondence.DiffFormatter<? super A, ? super E>)
. As a result, you should almost never see DiffFormatter
used as the type of a field or variable, or a return type.
Modifier and Type | Method and Description |
---|---|
String |
formatDiff(A actual,
E expected)
Returns a
String describing the difference between the actual and expected values, if possible, or null if not. |
Copyright © 2020. All rights reserved.