Package io.aether.utils.streams
Class FGate.OutSideGate
- java.lang.Object
-
- io.aether.utils.streams.FGate.OutSideGate
-
-
Constructor Summary
Constructors Constructor Description OutSideGate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tfind(io.aether.utils.CTypeI<T> type)Finds an object of the specified type within the acceptor.<T> Tfind(java.lang.Class<T> type)Finds an object of the specified type within the acceptor.FGate<ToNode,ToOut>getFGate()Returns the FGate instance to which this OutSideGate belongs.Gate<ToOut,ToNode>link()Returns the current link of this OutSideGate.voidlink(Gate<ToOut,ToNode> side)Links this OutSideGate to the specified side.voidlink0(Gate<ToOut,ToNode> g)Internal method for setting the link without notification.voidsend(Value<ToNode> value)Sends a value through the gate.java.lang.StringtoString()Returns a string representation of the acceptor.voidtoString(io.aether.utils.AString sb)Appends a string representation of the acceptor to the provided AString instance.voidunlink()Unlinks this OutSideGate from its current link.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.aether.utils.streams.Gate
buffer, bufferAutoFlush, distinctRead, distinctWrite, filter, insertBuffer, linkFGate, log, log, map, map, mapAsync, mapAsyncRead, mapAsyncWrite, mapRead, mapWrite, ofBiConsumer, ofCollection, ofDataOut, ofFunction, ofFuture, ofSideTryFuture, toAcceptor, toConsumer, toConsumerValue
-
Methods inherited from interface io.aether.utils.streams.GateI
sendRequestData
-
-
-
-
Method Detail
-
getFGate
public FGate<ToNode,ToOut> getFGate()
Returns the FGate instance to which this OutSideGate belongs.- Returns:
- The FGate instance to which this OutSideGate belongs.
-
toString
public void toString(io.aether.utils.AString sb)
Appends a string representation of the acceptor to the provided AString instance.- Specified by:
toStringin interfaceio.aether.utils.ToString- Parameters:
sb- The AString instance to which the string representation will be appended.
-
toString
public java.lang.String toString()
Returns a string representation of the acceptor.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the acceptor.
-
find
public <T> T find(java.lang.Class<T> type)
Finds an object of the specified type within the acceptor.- Specified by:
findin interfaceio.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 acceptor.- Specified by:
findin interfaceio.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.
-
unlink
public void unlink()
Unlinks this OutSideGate from its current link.
-
link0
public void link0(Gate<ToOut,ToNode> g)
Description copied from interface:GateInternal method for setting the link without notification.
-
-