The inputs to this Connector.
The inputs to this Connector. They are fixed; this method will always return the exact same sequence.
The outputs from this Connector.
The outputs from this Connector. They are fixed; this method will always return the exact same sequence.
Connects these sources to our inputs, in order.
Connects these sources to our inputs, in order.
This is a convenience method only; you can call connect() on each ConnectorInput individually.
IllegalArgumentException
if the size of sources
isn't the same as the size of this.inputs
.
Connects these sinks to our outputs, in order.
Connects these sinks to our outputs, in order.
This is a convenience method only; you can call connect() on each ConnectorOutput individually.
IllegalArgumentException
if the size of sinks
isn't the same as the size of this.outputs
.
The inputs and outputs of this Connector.
Connectors represent the only ways to connect multiple inputs to one output, or multiple outputs to one input.
They never change the elements going through them, which is also why there is only one type parameter
T
for both input and output.