Package io.aether.utils.streams
Class FGate.Pair<TIn,TOut,PairOut>
- java.lang.Object
-
- io.aether.utils.streams.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
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> Tfind(io.aether.utils.CTypeI<T> type)Finds an object of the specified type within the pair.<T> Tfind(java.lang.Class<T> type)Finds an object of the specified type within the pair.abstract FGate.InsideGatepair()Returns the InsideGate of the paired FGate.java.lang.StringtoString()Returns a string representation of the pair.voidtoString(io.aether.utils.AString sb)Appends a string representation of the pair to the provided AString instance.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representation of the pair.- Overrides:
toStringin classjava.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:
toStringin interfaceio.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:
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 pair.- 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.
-
-