public abstract class Shape
extends java.lang.Object
Graph
. In keeping with the
philosophy that a Graph is a freely reusable blueprint, everything that
matters from the outside are the connections that can be made with it,
otherwise it is just a black box.Constructor and Description |
---|
Shape() |
Modifier and Type | Method and Description |
---|---|
abstract Shape |
copyFromPorts(scala.collection.immutable.Seq<Inlet<?>> inlets,
scala.collection.immutable.Seq<Outlet<?>> outlets)
Create a copy of this Shape object, returning the same type as the
original but containing the ports given within the passed-in Shape.
|
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 ports
|
java.util.List<Outlet<?>> |
getOutlets()
Java API: get a list of all output 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()
Scala API: get a list of all input ports
|
abstract scala.collection.immutable.Seq<Outlet<?>> |
outlets()
Scala API: get a list of all output ports
|
void |
requireSamePortsAndShapeAs(Shape s)
Asserting version of
hasSamePortsAndShapeAs(akka.stream.Shape) . |
void |
requireSamePortsAs(Shape s)
Asserting version of
hasSamePortsAs(akka.stream.Shape) . |
public abstract scala.collection.immutable.Seq<Inlet<?>> inlets()
public abstract scala.collection.immutable.Seq<Outlet<?>> outlets()
public abstract Shape deepCopy()
public abstract Shape copyFromPorts(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)
inlets
- (undocumented)outlets
- (undocumented)public java.util.List<Inlet<?>> getInlets()
public java.util.List<Outlet<?>> getOutlets()
public boolean hasSamePortsAs(Shape s)
s
- (undocumented)public boolean hasSamePortsAndShapeAs(Shape s)
s
- (undocumented)public void requireSamePortsAs(Shape s)
hasSamePortsAs(akka.stream.Shape)
.s
- (undocumented)public void requireSamePortsAndShapeAs(Shape s)
hasSamePortsAndShapeAs(akka.stream.Shape)
.s
- (undocumented)