Class Act.Func<T,R>

java.lang.Object
jp.co.moneyforward.autotest.framework.action.Act.Func<T,R>
Type Parameters:
T - Input type
R - Output type
All Implemented Interfaces:
Act<T,R>
Direct Known Subclasses:
Act.Sink
Enclosing interface:
Act<T,R>

public static class Act.Func<T,R> extends Object implements Act<T,R>
An act that models a function whose input is T and output is R
  • Constructor Details

    • Func

      public Func(Function<T,R> func)
      Creates an object of this class from a given function func.
      Parameters:
      func - A function from which a new object is created.
    • Func

      public Func(String name, Function<T,R> func)
  • Method Details

    • perform

      public R perform(T value, ExecutionEnvironment executionEnvironment)
      Description copied from interface: Act
      Applies this function the given argument: value(T) and returns the result (R).
      Specified by:
      perform in interface Act<T,R>
      Parameters:
      value - An argument value.
      executionEnvironment - An environment in which this function is executed.
      Returns:
      the function result.
    • body

      public Function<T,R> body()
    • name

      public String name()
      Description copied from interface: Act
      Returns a name of an instance of this interface.
      Specified by:
      name in interface Act<T,R>
      Returns:
      A name of this instance.