Class SubSource$

java.lang.Object
org.apache.pekko.stream.javadsl.SubSource$

public class SubSource$ extends Object
* 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.
  • Field Details

    • MODULE$

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

    • SubSource$

      public SubSource$()
  • Method Details

    • upcast

      public <U, T extends U, Mat> SubSource<U,Mat> upcast(SubSource<T,Mat> source)