Class OperationChain.Builder

  • Enclosing class:
    OperationChain<OUT>

    public static class OperationChain.Builder
    extends Object

    A Builder is a type safe way of building an OperationChain. The builder instance is updated after each method call so it is best to chain the method calls together. Usage:
    new Builder()
     .first(new SomeOperation.Builder()
      .addSomething()
      .build()
     )
     .then(new SomeOtherOperation.Builder()
      .addSomethingElse()
      .build()
     )
     .build();

    For a full example see the Example module.