Package akka.stream

Class Shape

    • Constructor Detail

      • Shape

        public Shape()
    • Method Detail

      • hasOnePort

        public static boolean hasOnePort​(scala.collection.immutable.Seq<?> ports)
        inlets and outlets can be Vector or List so this method checks the size of 1 in an optimized way.
        Parameters:
        ports - (undocumented)
        Returns:
        (undocumented)
      • inlets

        public abstract scala.collection.immutable.Seq<Inlet<?>> inlets()
        Scala API: get a list of all input ports
        Returns:
        (undocumented)
      • 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)