Class SubFlow$


  • public class SubFlow$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SubFlow$ MODULE$
      Static reference to the singleton instance of this Scala 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final SubFlow$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • SubFlow$

        public SubFlow$()
    • 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 a map.

        Parameters:
        flow - (undocumented)
        Returns:
        A flow that accepts In and outputs elements of the super type