SimpleAction

fun interface SimpleAction<Input, Output>(source)

Represents a functional interface designed for performing a simple action that takes an input of type Input and produces an output of type Output.

This interface is specifically optimized for interoperability with Java.

Parameters

Input

The type of the input parameter for the action.

Output

The type of the output produced by the action.

Functions

Link copied to clipboard
abstract fun execute(input: Input): Output

Executes the action with the provided input and produces an output.