Package org.dmfs.jems2.iterable
Class OuterZipped<Left,Right,Result>
- java.lang.Object
-
- org.dmfs.jems2.iterable.OuterZipped<Left,Right,Result>
-
- All Implemented Interfaces:
java.lang.Iterable<Result>
public final class OuterZipped<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 returns as many results as the longer of the two givenIterables. The givenBiFunctionreceivesOptionals, which are absent for the shorterIterablewhen it runs out of elements.
-
-
Constructor Summary
Constructors Constructor Description OuterZipped(java.lang.Iterable<? extends Left> left, java.lang.Iterable<? extends Right> right, BiFunction<? super Optional<? extends 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()
-