Class IterableDiff


  • class IterableDiff
    extends Object
    • Method Detail

      • 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)