Package akka.stream.impl.fusing
Class Fold<In,Out>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<FlowShape<In,Out>>
-
- akka.stream.impl.fusing.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <In,Out>
Fold<In,Out>apply(Out zero, scala.Function2<Out,In,Out> f)
boolean
canEqual(java.lang.Object x$1)
<In,Out>
Fold<In,Out>copy(Out zero, scala.Function2<Out,In,Out> f)
<In,Out>
Outcopy$default$1()
<In,Out>
scala.Function2<Out,In,Out>copy$default$2()
GraphStageLogic
createLogic(Attributes inheritedAttributes)
boolean
equals(java.lang.Object x$1)
scala.Function2<Out,In,Out>
f()
int
hashCode()
Inlet<In>
in()
Attributes
initialAttributes()
Outlet<Out>
out()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
FlowShape<In,Out>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.String
toString()
static <In,Out>
scala.Option<scala.Tuple2<Out,scala.Function2<Out,In,Out>>>unapply(Fold<In,Out> x$0)
Out
zero()
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
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()
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<FlowShape<In,Out>,NotUsed>
-
createLogic
public GraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<FlowShape<In,Out>>
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-