Package org.apache.pekko.stream
Class AmorphousShape
- java.lang.Object
-
- org.apache.pekko.stream.Shape
-
- org.apache.pekko.stream.AmorphousShape
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
public class AmorphousShape extends Shape implements scala.Product, java.io.Serializable
This type ofShapecan express any number of inputs and outputs at the expense of forgetting about their specific types. It is used mainly in the implementation of theGraphbuilders and typically replaced by a more meaningful type of Shape when the building is finished.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmorphousShape(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AmorphousShapeapply(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)booleancanEqual(java.lang.Object x$1)AmorphousShapecopy(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)scala.collection.immutable.Seq<Inlet<?>>copy$default$1()scala.collection.immutable.Seq<Outlet<?>>copy$default$2()AmorphousShapedeepCopy()Create a copy of this Shape object, returning the same type as the original; this constraint can unfortunately not be expressed in the type system.booleanequals(java.lang.Object x$1)inthashCode()scala.collection.immutable.Seq<Inlet<?>>inlets()Scala API: get a list of all input portsscala.collection.immutable.Seq<Outlet<?>>outlets()Scala API: get a list of all output portsintproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()static scala.Option<scala.Tuple2<scala.collection.immutable.Seq<Inlet<?>>,scala.collection.immutable.Seq<Outlet<?>>>>unapply(AmorphousShape x$0)-
Methods inherited from class org.apache.pekko.stream.Shape
getInlets, getOutlets, hasOnePort, hasSamePortsAndShapeAs, hasSamePortsAs, requireSamePortsAndShapeAs, requireSamePortsAs
-
-
-
-
Method Detail
-
apply
public static AmorphousShape apply(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)
-
unapply
public static scala.Option<scala.Tuple2<scala.collection.immutable.Seq<Inlet<?>>,scala.collection.immutable.Seq<Outlet<?>>>> unapply(AmorphousShape x$0)
-
inlets
public scala.collection.immutable.Seq<Inlet<?>> inlets()
Description copied from class:ShapeScala API: get a list of all input ports
-
outlets
public scala.collection.immutable.Seq<Outlet<?>> outlets()
Description copied from class:ShapeScala API: get a list of all output ports
-
deepCopy
public AmorphousShape deepCopy()
Description copied from class:ShapeCreate a copy of this Shape object, returning the same type as the original; this constraint can unfortunately not be expressed in the type system.
-
copy
public AmorphousShape copy(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)
-
copy$default$1
public scala.collection.immutable.Seq<Inlet<?>> copy$default$1()
-
copy$default$2
public scala.collection.immutable.Seq<Outlet<?>> copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-