Package net.orbyfied.coldlib.util
Class Assembly.Line<T,O>
java.lang.Object
net.orbyfied.coldlib.util.Assembly.Line<T,O>
- Type Parameters:
T- The instance type.O- The options type.
A pipeline or assembly line which will
transform the instance of type
T
by passing it through a line of Assembly.Transformers.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Assembly.Transformer<T,O>> The transformers in the assembly line. -
Constructor Summary
ConstructorsConstructorDescriptionLine(List<Assembly.Transformer<T, O>> transformers) Create a new assembly line. -
Method Summary
-
Field Details
-
transformers
The transformers in the assembly line.
-
-
Constructor Details
-
Line
Create a new assembly line.- Parameters:
transformers- The transformers.
-
-
Method Details
-
push
Pushes the given instance through the line transforming it and giving an output instance.- Parameters:
in- The input instance.options- The input options.- Returns:
- The output instance.
-