Class IterableDiff

java.lang.Object
org.assertj.core.internal.IterableDiff

class IterableDiff extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • 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 from
      second - 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(Iterable<?> actual, Object value)
    • iterablesRemoveFirst

      private void iterablesRemoveFirst(Iterable<?> actual, Object value)