Package org.dmfs.jems2.iterable
Class LeftZipped<Left,Right,Result>
- java.lang.Object
-
- org.dmfs.jems2.iterable.LeftZipped<Left,Right,Result>
-
- All Implemented Interfaces:
java.lang.Iterable<Result>
public final class LeftZipped<Left,Right,Result> extends java.lang.Object implements java.lang.Iterable<Result>/** AnIterablecombining the elements of two givenIterables using aBiFunction.In contrast to
Zipped, this always returns as many results as the leftIterable. The givenBiFunctionreceives anOptionalas the second argument, which is absent in case the rightIterablehas run out of elements.If the right
Iterablehas more elements than the left one, the excess elements are not iterated.
-
-
Constructor Summary
Constructors Constructor Description LeftZipped(java.lang.Iterable<? extends Left> left, java.lang.Iterable<? extends Right> right, BiFunction<? super Left,? super Optional<? extends Right>,? extends Result> zipFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Result>iterator()
-