Class SubjectUtils.DuplicateGroupedAndTyped

  • Enclosing class:
    SubjectUtils

    static final class SubjectUtils.DuplicateGroupedAndTyped
    extends java.lang.Object
    Missing or unexpected values from a collection assertion, with equal objects grouped together and, in some cases, type information added. If the type information is present, it is either present in homogeneousTypeToDisplay (if all objects have the same type) or appended to each individual element (if some elements have different types).

    This allows collection assertions to the type information on a separate line from the elements and even to output different elements on different lines.

    • Field Detail

      • homogeneousTypeToDisplay

        final com.google.common.base.Optional<java.lang.String> homogeneousTypeToDisplay
    • Constructor Detail

      • DuplicateGroupedAndTyped

        DuplicateGroupedAndTyped​(SubjectUtils.NonHashingMultiset<?> valuesAndMaybeTypes,
                                 com.google.common.base.Optional<java.lang.String> homogeneousTypeToDisplay)
    • Method Detail

      • totalCopies

        int totalCopies()
      • isEmpty

        boolean isEmpty()
      • entrySet

        java.lang.Iterable<com.google.common.collect.Multiset.Entry<?>> entrySet()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object