Package org.assertj.core.internal
Class IterableDiff
- java.lang.Object
-
- org.assertj.core.internal.IterableDiff
-
class IterableDiff extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private ComparisonStrategycomparisonStrategy(package private) List<Object>missing(package private) List<Object>unexpected
-
Constructor Summary
Constructors Constructor Description IterableDiff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static <T> IterableDiffdiff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy)(package private) booleandifferencesFound()private booleaniterableContains(Iterable<?> actual, Object value)private voiditerablesRemoveFirst(Iterable<?> actual, Object value)private <T> List<Object>subtract(Iterable<T> first, Iterable<T> second)Returns the list of elements in the first iterable that are not in the second, i.e.
-
-
-
Field Detail
-
comparisonStrategy
private final ComparisonStrategy comparisonStrategy
-
-
Constructor Detail
-
IterableDiff
IterableDiff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
diff
static <T> IterableDiff diff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
differencesFound
boolean differencesFound()
-
subtract
private <T> List<Object> subtract(Iterable<T> first, Iterable<T> second)
Returns the list of elements in the first iterable that are not in the second, i.e. first - second- Type Parameters:
T- the element type- Parameters:
first- the list we want to subtract fromsecond- the list to subtract- Returns:
- the list of elements in the first iterable that are not in the second, i.e. first - second
-
-