Package com.google.common.truth
Class SubjectUtils.DuplicateGroupedAndTyped
- java.lang.Object
-
- com.google.common.truth.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 inhomogeneousTypeToDisplay
(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 Summary
Fields Modifier and Type Field Description (package private) com.google.common.base.Optional<java.lang.String>
homogeneousTypeToDisplay
(package private) SubjectUtils.NonHashingMultiset<?>
valuesAndMaybeTypes
-
Constructor Summary
Constructors Constructor Description DuplicateGroupedAndTyped(SubjectUtils.NonHashingMultiset<?> valuesAndMaybeTypes, com.google.common.base.Optional<java.lang.String> homogeneousTypeToDisplay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Iterable<com.google.common.collect.Multiset.Entry<?>>
entrySet()
(package private) boolean
isEmpty()
java.lang.String
toString()
(package private) int
totalCopies()
-
-
-
Field Detail
-
valuesAndMaybeTypes
final SubjectUtils.NonHashingMultiset<?> valuesAndMaybeTypes
-
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)
-
-