Package org.assertj.core.internal
Class IterableDiff
java.lang.Object
org.assertj.core.internal.IterableDiff
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIterableDiff
(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> IterableDiff
diff
(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) (package private) boolean
private boolean
iterableContains
(Iterable<?> actual, Object value) private void
iterablesRemoveFirst
(Iterable<?> actual, Object value) Returns the list of elements in the first iterable that are not in the second, i.e.
-
Field Details
-
comparisonStrategy
-
unexpected
-
missing
-
-
Constructor Details
-
IterableDiff
IterableDiff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
-
Method Details
-
diff
static <T> IterableDiff diff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) -
differencesFound
boolean differencesFound() -
subtract
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
-
iterableContains
-
iterablesRemoveFirst
-