Commits

Stepan Koltsov committed 8bffa3e

fix signature of flatMapL

  • Participants
  • Parent commits 767c72c

Comments (0)

Files changed (2)

File src/main/java/ru/yandex/bolts/collection/IteratorF.java

 
     <B> IteratorF<B> flatMap(Function<? super E, ? extends Iterator<B>> f);
 
-    <B> IteratorF<B> flatMapL(Function<? extends E, ? extends Iterable<B>> f);
+    <B> IteratorF<B> flatMapL(Function<? super E, ? extends Iterable<B>> f);
 
     IteratorF<E> filter(Function1B<? super E> f);
 

File src/main/java/ru/yandex/bolts/collection/impl/AbstractIteratorF.java

 
     @SuppressWarnings("unchecked")
     @Override
-    public <B> IteratorF<B> flatMapL(Function<? extends E, ? extends Iterable<B>> f0) {
+    public <B> IteratorF<B> flatMapL(Function<? super E, ? extends Iterable<B>> f0) {
         Function<E, Iterable<B>> f = (Function<E, Iterable<B>>) f0;
         Function<E, Iterator<B>> g = f.andThen(new Function<Iterable<B>, Iterator<B>>() {
             public Iterator<B> apply(Iterable<B> a) {