Package com.google.common.truth
Class IterableSubject.UsingCorrespondence.Pairer
java.lang.Object
com.google.common.truth.IterableSubject.UsingCorrespondence.Pairer
- Enclosing class:
IterableSubject.UsingCorrespondence<A,
E>
A class which knows how to pair the actual and expected elements (see
IterableSubject.UsingCorrespondence.displayingDiffsPairedBy(com.google.common.base.Function<? super E, ?>)
).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
actualKey
(A actual, Correspondence.ExceptionStore exceptions) private Object
expectedKey
(E expected, Correspondence.ExceptionStore exceptions) (package private) IterableSubject.UsingCorrespondence<A,
E>.Pairing pair
(List<? extends E> expectedValues, List<? extends A> actualValues, Correspondence.ExceptionStore exceptions) Returns aIterableSubject.UsingCorrespondence<A,
of the given expected and actual values, orE>.Pairing null
if the expected values are not uniquely keyed.pairOne
(E expectedValue, Iterable<? extends A> actualValues, Correspondence.ExceptionStore exceptions)
-
Field Details
-
actualKeyFunction
-
expectedKeyFunction
-
-
Constructor Details
-
Pairer
-
-
Method Details
-
pair
IterableSubject.UsingCorrespondence<A,E>.Pairing pair(List<? extends E> expectedValues, List<? extends A> actualValues, Correspondence.ExceptionStore exceptions) Returns aIterableSubject.UsingCorrespondence<A,
of the given expected and actual values, orE>.Pairing null
if the expected values are not uniquely keyed. -
pairOne
-
actualKey
-
expectedKey
-