Class Act.Sink<T>

java.lang.Object
jp.co.moneyforward.autotest.framework.action.Act.Func<T,Void>
jp.co.moneyforward.autotest.framework.action.Act.Sink<T>
Type Parameters:
T - A type of value consumed by this sink object.
All Implemented Interfaces:
Act<T,Void>
Enclosing interface:
Act<T,R>

public static class Act.Sink<T> extends Act.Func<T,Void>

A leaf act, which models a "sink". A sink is a concept, where value is consumed only.

As the design of leaf act of the insdog framework, it needs to return a value on a call of perform method, it returns null instead.

  • Constructor Details

    • Sink

      public Sink(Consumer<T> sink)
      Creates an instance of this class.
      Parameters:
      sink - A consumer that processes a target value in the context
    • Sink

      public Sink(String name, Consumer<T> sink)
      Creates an object of this class from a given consumer sink. The sink is made printable using a string name.
      Parameters:
      name - A name of a consumer. Used on toString.
      sink - A consumer from which a new object is created.