Class Fold<In,​Out>

  • All Implemented Interfaces:
    Graph<FlowShape<In,​Out>,​NotUsed>, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class Fold<In,​Out>
    extends GraphStage<FlowShape<In,​Out>>
    implements scala.Product, scala.Serializable
    INTERNAL API
    See Also:
    Serialized Form
    • Constructor Detail

      • Fold

        public Fold​(Out zero,
                    scala.Function2<Out,​In,​Out> f)
    • Method Detail

      • apply

        public static <In,​Out> Fold<In,​Out> apply​(Out zero,
                                                              scala.Function2<Out,​In,​Out> f)
      • unapply

        public static <In,​Out> scala.Option<scala.Tuple2<Out,​scala.Function2<Out,​In,​Out>>> unapply​(Fold<In,​Out> x$0)
      • zero

        public Out zero()
      • f

        public scala.Function2<Out,​In,​Out> f()
      • shape

        public FlowShape<In,​Out> shape()
        Description copied from interface: Graph
        The shape of a graph is all that is externally visible: its inlets and outlets.
        Specified by:
        shape in interface Graph<In,​Out>
        Returns:
        (undocumented)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • copy

        public <In,​Out> Fold<In,​Out> copy​(Out zero,
                                                      scala.Function2<Out,​In,​Out> f)
      • copy$default$1

        public <In,​Out> Out copy$default$1()
      • copy$default$2

        public <In,​Out> scala.Function2<Out,​In,​Out> copy$default$2()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object