Package org.assertj.core.internal
Class IterableDiff<T>
java.lang.Object
org.assertj.core.internal.IterableDiff<T>
- Type Parameters:
T
- the type of element to compare.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIterableDiff
(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> IterableDiff
<T> (package private) static <T> IterableDiff
<T> diff
(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) (package private) boolean
private boolean
isActualElementInExpected
(T elementInActual, List<T> copyOfExpected) private boolean
iterableContains
(Iterable<?> actual, T expectedElement) private void
iterablesRemoveFirst
(Iterable<?> actual, T value) missingActualElements
(Iterable<T> actual, Iterable<T> expected) unexpectedActualElements
(Iterable<T> actual, Iterable<T> expected) 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<T> diff(Iterable<T> actual, Iterable<T> expected, ComparisonStrategy comparisonStrategy) -
diff
-
differencesFound
boolean differencesFound() -
unexpectedActualElements
Returns the list of elements in the first iterable that are not in the second, i.e. first - second- Parameters:
actual
- the list we want to subtract fromexpected
- the list to subtract- Returns:
- the list of elements in the first iterable that are not in the second, i.e. first - second
-
isActualElementInExpected
-
missingActualElements
-
iterableContains
-
iterablesRemoveFirst
-