Package org.assertj.core.internal
Class IterableDiff
- java.lang.Object
-
- org.assertj.core.internal.IterableDiff
-
class IterableDiff extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ComparisonStrategy
comparisonStrategy
(package private) java.util.List<java.lang.Object>
missing
(package private) java.util.List<java.lang.Object>
unexpected
-
Constructor Summary
Constructors Constructor Description IterableDiff(java.lang.Iterable<T> actual, java.lang.Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static <T> IterableDiff
diff(java.lang.Iterable<T> actual, java.lang.Iterable<T> expected, ComparisonStrategy comparisonStrategy)
(package private) boolean
differencesFound()
private boolean
iterableContains(java.lang.Iterable<?> actual, java.lang.Object value)
private void
iterablesRemoveFirst(java.lang.Iterable<?> actual, java.lang.Object value)
private <T> java.util.List<java.lang.Object>
subtract(java.lang.Iterable<T> first, java.lang.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
-
unexpected
java.util.List<java.lang.Object> unexpected
-
missing
java.util.List<java.lang.Object> missing
-
-
Constructor Detail
-
IterableDiff
IterableDiff(java.lang.Iterable<T> actual, java.lang.Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
diff
static <T> IterableDiff diff(java.lang.Iterable<T> actual, java.lang.Iterable<T> expected, ComparisonStrategy comparisonStrategy)
-
differencesFound
boolean differencesFound()
-
subtract
private <T> java.util.List<java.lang.Object> subtract(java.lang.Iterable<T> first, java.lang.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
-
iterableContains
private boolean iterableContains(java.lang.Iterable<?> actual, java.lang.Object value)
-
iterablesRemoveFirst
private void iterablesRemoveFirst(java.lang.Iterable<?> actual, java.lang.Object value)
-
-