Package org.dmfs.jems2.iterable
Class Zipped<Result>
java.lang.Object
org.dmfs.jems2.iterable.DelegatingIterable<Result>
org.dmfs.jems2.iterable.Zipped<Result>
- All Implemented Interfaces:
Iterable<Result>
An
Iterable combining the elements of two given Iterables using a BiFunction.
This iterates as many elements as the shorter of both Iterables.
-
Constructor Summary
ConstructorsConstructorDescriptionZipped(Iterable<Left> left, Iterable<Right> right, BiFunction<? super Left, ? super Right, ? extends Result> function) -
Method Summary
Methods inherited from class org.dmfs.jems2.iterable.DelegatingIterable
iteratorMethods 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
-
Constructor Details
-
Zipped
public Zipped(Iterable<Left> left, Iterable<Right> right, BiFunction<? super Left, ? super Right, ? extends Result> function)
-