Interface Task

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Task
  • Method Summary

    Modifier and Type
    Method
    Description
    run(Example example)
    Run the task on the given Example and produce outputs.
  • Method Details

    • run

      Map<String,Object> run(Example example)
      Run the task on the given Example and produce outputs.
      Parameters:
      example - the example containing inputs and expected outputs
      Returns:
      the actual outputs produced by the task