Class IterableSubject.UsingCorrespondence.Pairing

  • Enclosing class:
    IterableSubject.UsingCorrespondence<A,​E>

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

      Fields 
      Modifier and Type Field Description
      private com.google.common.collect.ListMultimap<java.lang.Object,​A> pairedKeysToActualValues
      Multimap from keys used in the pairing to the actual values with that key.
      private java.util.Map<java.lang.Object,​E> pairedKeysToExpectedValues
      Map from keys used in the pairing to the expected value with that key.
      private java.util.List<A> unpairedActualValues
      List of the actual values not used in the pairing.
      private java.util.List<E> unpairedExpectedValues
      List of the expected values not used in the pairing.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Pairing()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pairedKeysToExpectedValues

        private final java.util.Map<java.lang.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<java.lang.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 java.util.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 java.util.List<A> unpairedActualValues
        List of the actual values not used in the pairing. Iterates in the order they appear in the input.
    • Constructor Detail

      • Pairing

        private Pairing()