Class Zipped<Result>

  • All Implemented Interfaces:
    java.lang.Iterable<Result>

    public final class Zipped<Result>
    extends DelegatingIterable<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

      Constructors 
      Constructor Description
      Zipped​(java.lang.Iterable<Left> left, java.lang.Iterable<Right> right, BiFunction<? super Left,​? super Right,​? extends Result> function)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Zipped

        public Zipped​(java.lang.Iterable<Left> left,
                      java.lang.Iterable<Right> right,
                      BiFunction<? super Left,​? super Right,​? extends Result> function)