Package akka.stream.javadsl
Class SubFlow$
- java.lang.Object
-
- akka.stream.javadsl.SubFlow$
-
public class SubFlow$ extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SubFlow$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <In,SuperOut,Out extends SuperOut,M>
SubFlow<In,SuperOut,M>upcast(SubFlow<In,Out,M> flow)
Upcast a stream of elements to a stream of supertypes of that element.
-
-
-
Field Detail
-
MODULE$
public static final SubFlow$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
upcast
public <In,SuperOut,Out extends SuperOut,M> SubFlow<In,SuperOut,M> upcast(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
In
and outputs elements of the super type
-
-