Package org.dmfs.jems2.iterable
Class LeftZipped<Left,Right,Result>
java.lang.Object
org.dmfs.jems2.iterable.LeftZipped<Left,Right,Result>
- All Implemented Interfaces:
Iterable<Result>
/**
An
Iterable combining the elements of two given Iterables using a BiFunction.
In contrast to Zipped, this always returns as many results as the left Iterable.
The given BiFunction receives an Optional as the second argument, which is absent in case the right Iterable has run out
of elements.
If the right Iterable has more elements than the left one, the excess elements are not iterated.
-
Constructor Summary
ConstructorsConstructorDescriptionLeftZipped(Iterable<? extends Left> left, Iterable<? extends Right> right, BiFunction<? super Left, ? super Optional<? extends Right>, ? extends Result> zipFunction) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator