=str #16608 adds scaladoc about null in col returned from mapConcat

This commit is contained in:
Konrad Malawski 2015-04-15 17:41:41 +02:00
parent 88e013b99b
commit 38638e42e4
3 changed files with 9 additions and 0 deletions

View file

@ -292,6 +292,9 @@ class Source[+Out, +Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[Sour
/**
* Transform each input element into a sequence of output elements that is
* then flattened into the output stream.
*
* The returned list MUST NOT contain `null` values,
* as they are illegal as stream elements - according to the Reactive Streams specification.
*/
def mapConcat[T](f: japi.Function[Out, java.util.List[T]]): javadsl.Source[T, Mat] =
new Source(delegate.mapConcat(elem Util.immutableSeq(f.apply(elem))))