Class FGate.Pair<TIn,​TOut,​PairOut>

  • Type Parameters:
    TIn - The type of data processed by the node on one side of the gate.
    TOut - The type of data output from the node through the gate.
    PairOut - The type of data output from the pair of gates.
    All Implemented Interfaces:
    io.aether.utils.interfaces.ObjectFind, AcceptorI<TOut,​TIn>, io.aether.utils.ToString
    Direct Known Subclasses:
    BufferNode.BGate
    Enclosing class:
    FGate<ToNode,​ToOut>

    public abstract static class FGate.Pair<TIn,​TOut,​PairOut>
    extends java.lang.Object
    implements AcceptorI<TOut,​TIn>, io.aether.utils.interfaces.ObjectFind
    Abstract class representing a pair of gates with an owner.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(java.lang.Object owner)
      Constructs a new Pair with the specified owner.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T find​(io.aether.utils.CTypeI<T> type)
      Finds an object of the specified type within the pair.
      <T> T find​(java.lang.Class<T> type)
      Finds an object of the specified type within the pair.
      abstract FGate.InsideGate pair()
      Returns the InsideGate of the paired FGate.
      java.lang.String toString()
      Returns a string representation of the pair.
      void toString​(io.aether.utils.AString sb)
      Appends a string representation of the pair to the provided AString instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.aether.utils.interfaces.ObjectFind

        getOwners
      • Methods inherited from interface io.aether.utils.ToString

        toString2
    • Constructor Detail

      • Pair

        public Pair​(java.lang.Object owner)
        Constructs a new Pair with the specified owner.
        Parameters:
        owner - The owner of the pair.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the pair.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the pair.
      • toString

        public void toString​(io.aether.utils.AString sb)
        Appends a string representation of the pair to the provided AString instance.
        Specified by:
        toString in interface io.aether.utils.ToString
        Parameters:
        sb - The AString instance to which the string representation will be appended.
      • pair

        @NotNull
        public abstract FGate.InsideGate pair()
        Returns the InsideGate of the paired FGate.
        Returns:
        The InsideGate of the paired FGate.
      • find

        public <T> T find​(java.lang.Class<T> type)
        Finds an object of the specified type within the pair.
        Specified by:
        find in interface io.aether.utils.interfaces.ObjectFind
        Type Parameters:
        T - The type of the object to find.
        Parameters:
        type - The class of the object to find.
        Returns:
        An object of the specified type, or null if not found.
      • find

        public <T> T find​(io.aether.utils.CTypeI<T> type)
        Finds an object of the specified type within the pair.
        Specified by:
        find in interface io.aether.utils.interfaces.ObjectFind
        Type Parameters:
        T - The type of the object to find.
        Parameters:
        type - The CType of the object to find.
        Returns:
        An object of the specified type, or null if not found.