Package com.google.common.truth
Interface Correspondence.DiffFormatter<A,E>
-
- Enclosing class:
- Correspondence<A,E>
public static interface Correspondence.DiffFormatter<A,E>A functional interface to be used format the diff between a pair of objects of typesAandE.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 seeDiffFormatterused as the type of a field or variable, or a return type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringformatDiff(@Nullable A actual, @Nullable E expected)Returns aStringdescribing the difference between theactualandexpectedvalues, if possible, ornullif not.
-