Class Diff<Left,​Right>

  • All Implemented Interfaces:
    java.util.Iterator<Pair<Optional<Left>,​Optional<Right>>>

    public final class Diff<Left,​Right>
    extends BaseIterator<Pair<Optional<Left>,​Optional<Right>>>
    An Iterator returning the differences of two given (sorted) Iterators. The input Iterators have to be sorted by the comparison criterion, otherwise the result is undefined.
    • Constructor Detail

      • Diff

        public Diff​(java.util.Iterator<Left> leftIterator,
                    java.util.Iterator<Right> rightIterator,
                    BiFunction<? super Left,​? super Right,​java.lang.Integer> comparatorFunction)