Class FGate.InsideGate

  • All Implemented Interfaces:
    io.aether.utils.interfaces.ObjectFind, GateI<ToOut>, io.aether.utils.ToString
    Enclosing class:
    FGate<ToNode,​ToOut>

    public class FGate.InsideGate
    extends java.lang.Object
    implements GateI<ToOut>
    Represents the internal side of the gate.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      FGate<ToNode,​ToOut> fGate
      The FGate instance to which this InsideGate belongs.
    • Constructor Summary

      Constructors 
      Constructor Description
      InsideGate()  
    • Method Summary

      All Methods Instance 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 link, or returns null if no link is present.
      <T> T find​(java.lang.Class<T> type)
      Finds an object of the specified type within the link, or returns null if no link is present.
      void send​(Value<ToOut> value)
      Sends a value through the gate.
      java.lang.String toString()
      Returns a string representation of the link or "[NO LINK]" if no link is present.
      void toString​(io.aether.utils.AString sb)
      Appends a string representation of the link or "[NO LINK]" 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
    • Field Detail

      • fGate

        public final FGate<ToNode,​ToOut> fGate
        The FGate instance to which this InsideGate belongs.
    • Constructor Detail

      • InsideGate

        public InsideGate()
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the link or "[NO LINK]" if no link is present.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the link or "[NO LINK]" if no link is present.
      • toString

        public void toString​(io.aether.utils.AString sb)
        Appends a string representation of the link or "[NO LINK]" 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.
      • find

        public <T> T find​(java.lang.Class<T> type)
        Finds an object of the specified type within the link, or returns null if no link is present.
        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 or no link is present.
      • find

        public <T> T find​(io.aether.utils.CTypeI<T> type)
        Finds an object of the specified type within the link, or returns null if no link is present.
        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 or no link is present.
      • send

        public void send​(Value<ToOut> value)
        Sends a value through the gate.
        Specified by:
        send in interface GateI<ToOut>
        Parameters:
        value - The Value instance to be sent.