Package org.dmfs.jems2.iterable
Class RightZipped<Left,Right,Result>
- java.lang.Object
-
- org.dmfs.jems2.iterable.RightZipped<Left,Right,Result>
-
- All Implemented Interfaces:
java.lang.Iterable<Result>
public final class RightZipped<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 rightIterable. The givenBiFunctionreceives anOptionalas the first argument, which is absent in case the leftIterablehas run out of elements.If the left
Iterablehas more elements than the right one, the excess elements are not iterated.
-
-
Constructor Summary
Constructors Constructor Description RightZipped(java.lang.Iterable<? extends Left> left, java.lang.Iterable<? extends Right> right, BiFunction<? super Optional<? extends Left>,? super Right,? extends Result> zipFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Result>iterator()
-