Class IterableSubject.UsingCorrespondence.Pairing

java.lang.Object
com.google.common.truth.IterableSubject.UsingCorrespondence.Pairing
Enclosing class:
IterableSubject.UsingCorrespondence<A,E>

private final class IterableSubject.UsingCorrespondence.Pairing extends Object
An description of a pairing between expected and actual values. N.B. This is mutable.
  • Field Details

    • pairedKeysToExpectedValues

      private final Map<Object,E> pairedKeysToExpectedValues
      Map from keys used in the pairing to the expected value with that key. Iterates in the order the expected values appear in the input. Will never contain null keys.
    • pairedKeysToActualValues

      private final com.google.common.collect.ListMultimap<Object,A> pairedKeysToActualValues
      Multimap from keys used in the pairing to the actual values with that key. Keys iterate in the order they first appear in the actual values in the input, and values for each key iterate in the order they appear too. Will never contain null keys.
    • unpairedExpectedValues

      private final List<E> unpairedExpectedValues
      List of the expected values not used in the pairing. Iterates in the order they appear in the input.
    • unpairedActualValues

      private final List<A> unpairedActualValues
      List of the actual values not used in the pairing. Iterates in the order they appear in the input.
  • Constructor Details

    • Pairing

      private Pairing()