public final class SourceShape<T> extends Shape implements scala.Product, scala.Serializable
Shape
has exactly one output and no inputs, it models a source
of data.Constructor and Description |
---|
SourceShape(Outlet<T> out) |
Modifier and Type | Method and Description |
---|---|
abstract static boolean |
canEqual(java.lang.Object that) |
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.
|
SourceShape<T> |
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.
|
abstract static boolean |
equals(java.lang.Object that) |
static java.util.List<Inlet<?>> |
getInlets() |
static java.util.List<Outlet<?>> |
getOutlets() |
static boolean |
hasSamePortsAndShapeAs(Shape s) |
static boolean |
hasSamePortsAs(Shape s) |
scala.collection.immutable.Seq<Inlet<?>> |
inlets()
Scala API: get a list of all input ports
|
static <T> SourceShape<T> |
of(Outlet<T> outlet)
Java API
|
Outlet<T> |
out() |
scala.collection.immutable.Seq<Outlet<?>> |
outlets()
Scala API: get a list of all output ports
|
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
static void |
requireSamePortsAndShapeAs(Shape s) |
static void |
requireSamePortsAs(Shape s) |
getInlets, getOutlets, hasSamePortsAndShapeAs, hasSamePortsAs, requireSamePortsAndShapeAs, requireSamePortsAs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> SourceShape<T> of(Outlet<T> outlet)
public static java.util.List<Inlet<?>> getInlets()
public static java.util.List<Outlet<?>> getOutlets()
public static boolean hasSamePortsAs(Shape s)
public static boolean hasSamePortsAndShapeAs(Shape s)
public static void requireSamePortsAs(Shape s)
public static void requireSamePortsAndShapeAs(Shape s)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public scala.collection.immutable.Seq<Inlet<?>> inlets()
Shape
public scala.collection.immutable.Seq<Outlet<?>> outlets()
Shape
public SourceShape<T> deepCopy()
Shape
public Shape copyFromPorts(scala.collection.immutable.Seq<Inlet<?>> inlets, scala.collection.immutable.Seq<Outlet<?>> outlets)
Shape
copyFromPorts
in class Shape
inlets
- (undocumented)outlets
- (undocumented)