- Type Parameters:
I - Input type of joined chains
O - Output type of joined chains
- All Implemented Interfaces:
Chain<I,Stream<O>>
public final class JoinChain<I,O>
extends Object
implements Chain<I,Stream<O>>
This
Chain is used to join multiple other chains. Their output is
provided as a
Stream which will be passed as an input to subsequent
chains.
-
-
Method Summary
| Modifier and Type |
Method |
Description |
Stream<O> |
run(I input) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.hakenadu.javalangchains.chains.Chain
chain
-
Constructor Details
-
public JoinChain(
boolean parallel,
List<Chain<I,O>> chains)
- Parameters:
parallel - parallel
chains - chains
-
- Parameters:
chains - chains
-
- Parameters:
parallel - parallel
chains - chains
-
- Parameters:
chains - chains
-
Method Details
-
Description copied from interface: Chain
- Specified by:
run in interface Chain<I,O>
- Parameters:
input - this chain's input
- Returns:
- this chain's output