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.
Enclosing class:
Assembly<I,T,O>

public static class Assembly.Line<T,O> extends Object
A pipeline or assembly line which will transform the instance of type T by passing it through a line of Assembly.Transformers.
  • Field Details

  • Constructor Details

    • Line

      public Line(List<Assembly.Transformer<T,O>> transformers)
      Create a new assembly line.
      Parameters:
      transformers - The transformers.
  • Method Details

    • push

      public T push(T in, O options)
      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.