Class Graph.GraphMapMatVal<S extends Shape,M>

java.lang.Object
org.apache.pekko.stream.Graph.GraphMapMatVal<S,M>
Enclosing interface:
Graph<S extends Shape,M>

public static final class Graph.GraphMapMatVal<S extends Shape,M> extends Object
Scala API, see https://github.com/akka/akka/issues/28501 for discussion why this can't be an instance method on class Graph. param: self the graph whose materialized value will be mapped
  • Constructor Details

    • GraphMapMatVal

      public GraphMapMatVal(Graph<S,M> self)
  • Method Details

    • mapMaterializedValue

      public <M2> Graph<S,M2> mapMaterializedValue(scala.Function1<M,M2> f)
      Transform the materialized value of this Graph, leaving all other properties as they were.

      Parameters:
      f - function to map the graph's materialized value