Package akka.stream
Class Shape
- java.lang.Object
-
- akka.stream.Shape
-
- Direct Known Subclasses:
AbstractShape
,AmorphousShape
,BidiShape
,ClosedShape
,FanInShape
,FanOutShape
,FlowShape
,SinkShape
,SourceShape
public abstract class Shape extends java.lang.Object
Scala API: get a list of all input ports
-
-
Constructor Summary
Constructors Constructor Description Shape()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Shape
deepCopy()
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.java.util.List<Inlet<?>>
getInlets()
Java API: get a list of all input portsjava.util.List<Outlet<?>>
getOutlets()
Java API: get a list of all output portsstatic boolean
hasOnePort(scala.collection.immutable.Seq<?> ports)
boolean
hasSamePortsAndShapeAs(Shape s)
Compare this to another shape and determine whether the arrangement of ports is the same (including their ordering).boolean
hasSamePortsAs(Shape s)
Compare this to another shape and determine whether the set of ports is the same (ignoring their ordering).abstract scala.collection.immutable.Seq<Inlet<?>>
inlets()
abstract scala.collection.immutable.Seq<Outlet<?>>
outlets()
Scala API: get a list of all output portsvoid
requireSamePortsAndShapeAs(Shape s)
Asserting version ofhasSamePortsAndShapeAs(akka.stream.Shape)
.void
requireSamePortsAs(Shape s)
Asserting version ofhasSamePortsAs(akka.stream.Shape)
.
-
-
-
Method Detail
-
hasOnePort
public static boolean hasOnePort(scala.collection.immutable.Seq<?> ports)
-
inlets
public abstract scala.collection.immutable.Seq<Inlet<?>> inlets()
-
outlets
public abstract scala.collection.immutable.Seq<Outlet<?>> outlets()
Scala API: get a list of all output ports- Returns:
- (undocumented)
-
deepCopy
public abstract Shape deepCopy()
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.- Returns:
- (undocumented)
-
getInlets
public java.util.List<Inlet<?>> getInlets()
Java API: get a list of all input ports- Returns:
- (undocumented)
-
getOutlets
public java.util.List<Outlet<?>> getOutlets()
Java API: get a list of all output ports- Returns:
- (undocumented)
-
hasSamePortsAs
public boolean hasSamePortsAs(Shape s)
Compare this to another shape and determine whether the set of ports is the same (ignoring their ordering).- Parameters:
s
- (undocumented)- Returns:
- (undocumented)
-
hasSamePortsAndShapeAs
public boolean hasSamePortsAndShapeAs(Shape s)
Compare this to another shape and determine whether the arrangement of ports is the same (including their ordering).- Parameters:
s
- (undocumented)- Returns:
- (undocumented)
-
requireSamePortsAs
public void requireSamePortsAs(Shape s)
Asserting version ofhasSamePortsAs(akka.stream.Shape)
.- Parameters:
s
- (undocumented)
-
requireSamePortsAndShapeAs
public void requireSamePortsAndShapeAs(Shape s)
Asserting version ofhasSamePortsAndShapeAs(akka.stream.Shape)
.- Parameters:
s
- (undocumented)
-
-