Package org.apache.pekko.stream.javadsl
Class SubFlow$
java.lang.Object
org.apache.pekko.stream.javadsl.SubFlow$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
SubFlow$
public SubFlow$()
-
-
Method Details
-
upcast
public <In,SuperOut, SubFlow<In,Out extends SuperOut, M> SuperOut, upcastM> (SubFlow<In, Out, M> flow) Upcast a stream of elements to a stream of supertypes of that element. Useful in combination with fan-in operators where you do not want to pay the cost of casting each element in amap.- Returns:
- A flow that accepts
Inand outputs elements of the super type
-